mirror of https://github.com/axmolengine/axmol.git
36 lines
838 B
C++
36 lines
838 B
C++
#include "CommandBufferGL.h"
|
|
|
|
#if defined(__ANDROID__)
|
|
|
|
NS_AX_BACKEND_BEGIN
|
|
|
|
/**
|
|
* @addtogroup _opengl
|
|
* @{
|
|
*/
|
|
|
|
/**
|
|
* @brief Store encoded commands for the GPU to execute.
|
|
* A command buffer stores encoded commands until the buffer is committed for execution by the GPU
|
|
*/
|
|
class CommandBufferGLES2 : public CommandBufferGL
|
|
{
|
|
public:
|
|
CommandBufferGLES2();
|
|
void drawElementsInstanced(PrimitiveType primitiveType,
|
|
IndexFormat indexType,
|
|
std::size_t count,
|
|
std::size_t offset,
|
|
int instanceCount,
|
|
bool wireframe = false) override;
|
|
|
|
void bindInstanceBuffer(ProgramGL* program, bool* usedList) const override;
|
|
|
|
};
|
|
|
|
// end of _opengl group
|
|
/// @}
|
|
NS_AX_BACKEND_END
|
|
|
|
#endif
|