32constexpr int32_t BatchRendererPoints::POINT_COUNT;
34BatchRendererPoints::BatchRendererPoints(
Renderer* renderer, int32_t
id)
75 vboIds = vboManaged->getVBOIds();
static Engine * getInstance()
Returns engine instance.
static VBOManager * getVBOManager()
VBOManager_VBOManaged * addVBO(const string &vboId, int32_t ids, bool useGPUMemory, bool shared, bool &created)
Adds a VBO to manager or retrieve VBO if existing.
void removeVBO(const string &vboId)
Removes a VBO from manager.
virtual void bindEffectColorMulsBufferObject(int contextIdx, int32_t bufferObjectId, int32_t divisor)=0
Bind effect color muls buffer object.
virtual bool isSupportingIntegerProgramAttributes()=0
virtual void bindSpriteSheetDimensionBufferObject(int contextIdx, int32_t bufferObjectId)=0
Bind sprite sheet dimension buffer object.
virtual void drawPointsFromBufferObjects(int contextIdx, int32_t points, int32_t pointsOffset)=0
Draw points from buffer objects.
virtual void uploadBufferObject(int contextIdx, int32_t bufferObjectId, int32_t size, FloatBuffer *data)=0
Uploads buffer data to buffer object.
virtual void bindPointSizesBufferObject(int contextIdx, int32_t bufferObjectId)=0
Bind point sizes buffer object.
virtual void bindColorsBufferObject(int contextIdx, int32_t bufferObjectId)=0
Bind colors buffer object.
virtual void bindVerticesBufferObject(int contextIdx, int32_t bufferObjectId)=0
Bind vertices buffer object.
virtual void bindTextureSpriteIndicesBufferObject(int contextIdx, int32_t bufferObjectId)=0
Bind texture and sprite indices buffer object.
virtual void bindEffectColorAddsBufferObject(int contextIdx, int32_t bufferObjectId, int32_t divisor)=0
Bind effect color adds buffer object.
Batch renderer for points.
ByteBuffer * sbTextureSpriteIndicesByteBuffer
ShortBuffer sbTextureSpriteIndices
ShortBuffer sbSpriteSheetDimension
void render(int contextIdx)
Render.
FloatBuffer fbSpriteSheetDimension
ByteBuffer * fbVerticesByteBuffer
ByteBuffer * fbEffectColorMulByteBuffer
ByteBuffer * sbSpriteSheetDimensionByteBuffer
ByteBuffer * fbTextureSpriteIndicesByteBuffer
ByteBuffer * fbEffectColorAddByteBuffer
FloatBuffer fbEffectColorAdd
ByteBuffer * fbColorsByteBuffer
static constexpr int32_t POINT_COUNT
FloatBuffer fbTextureSpriteIndices
vector< int32_t > * vboIds
~BatchRendererPoints()
Destructor.
void clear()
Clears this batch vbo renderer.
ByteBuffer * fbSpriteSheetDimensionByteBuffer
FloatBuffer fbEffectColorMul
ByteBuffer * fbPointSizesByteBuffer
virtual int32_t getPosition()
virtual int32_t getPosition()
Transparent point to be rendered.