.. index:: pair: class; EE::Graphics::BatchRenderer .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer: class EE::Graphics::BatchRenderer ================================= .. toctree:: :hidden: Overview ~~~~~~~~ A batch rendering class. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class BatchRenderer { public: // construction :target:`BatchRenderer`(); :ref:`BatchRenderer`(const unsigned int& Prealloc); virtual :target:`~BatchRenderer`(); // methods static BatchRenderer* :target:`New`(); static BatchRenderer* :target:`New`(const unsigned int& Prealloc); void :ref:`allocVertexs`(const unsigned int& size); void :ref:`setTexture`(const :ref:`Texture`* texture, :ref:`Texture::CoordinateType` coordinateType = :ref:`Texture::CoordinateType::Normalized`); void :ref:`setBlendMode`(const :ref:`BlendMode`& blend); void :ref:`setBatchForceRendering`(const bool& force); bool :ref:`getBatchForceRendering`() const; void :ref:`draw`(); void :ref:`drawOpt`(); void :ref:`setBatchRotation`(const :ref:`Float`& Rotation); :ref:`Float` :ref:`getBatchRotation`() const; void :ref:`setBatchScale`(const :ref:`Vector2f`& Scale); void :ref:`setBatchScale`(const :ref:`Float`& Scale); :ref:`Vector2f` :ref:`getBatchScale`() const; void :ref:`setBatchPosition`(const :ref:`Vector2f` Pos); :ref:`Vector2f` :ref:`getBatchPosition`() const; void :ref:`setBatchCenter`(const :ref:`Vector2f` Pos); :ref:`Vector2f` :ref:`getBatchCenter`() const; void :ref:`batchQuadEx`( :ref:`Float` x, :ref:`Float` y, :ref:`Float` width, :ref:`Float` height, :ref:`Float` angle = 0.0f, :ref:`Vector2f` scale = Vector2f::One, :ref:`OriginPoint` originPoint = :ref:`OriginPoint`(OriginPoint::OriginCenter) ); void :ref:`batchQuad`(const :ref:`Float`& x, const :ref:`Float`& y, const :ref:`Float`& width, const :ref:`Float`& height); void :ref:`batchQuad`(const :ref:`Rectf`& rect); void :ref:`batchQuadFree`( const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2, const :ref:`Float`& x3, const :ref:`Float`& y3 ); void :ref:`batchQuadFreeEx`( const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2, const :ref:`Float`& x3, const :ref:`Float`& y3, const :ref:`Float`& Angle = 0.0f, const :ref:`Float`& Scale = 1.0f ); void :ref:`quadsBegin`(); void :ref:`quadsSetTexCoord`(const :ref:`Float`& tl_u, const :ref:`Float`& tl_v, const :ref:`Float`& br_u, const :ref:`Float`& br_v); void :ref:`quadsSetTexCoord`(const :ref:`Rectf`& region); void :ref:`quadsSetTexCoordFree`( const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2, const :ref:`Float`& x3, const :ref:`Float`& y3 ); void :ref:`quadsSetColor`(const :ref:`Color`& Color); void :ref:`quadsSetColorFree`(const :ref:`Color`& Color0, const :ref:`Color`& Color1, const :ref:`Color`& Color2, const :ref:`Color`& Color3); void :ref:`pointsBegin`(); void :ref:`pointSetColor`(const :ref:`Color`& Color); void :ref:`pointSetTexCoord`(const :ref:`Float`& x, const :ref:`Float`& y); void :ref:`batchPoint`(const :ref:`Float`& x, const :ref:`Float`& y, const :ref:`PrimitiveType`& primitiveType = :ref:`PRIMITIVE_POINTS`); void :ref:`batchPointList`(const std::vector<:ref:`VertexData`>& points, const :ref:`PrimitiveType`& primitiveType = :ref:`PRIMITIVE_POINTS`); void :ref:`linesBegin`(); void :ref:`linesSetColor`(const :ref:`Color`& Color); void :ref:`linesSetColorFree`(const :ref:`Color`& Color0, const :ref:`Color`& Color1); void :ref:`batchLine`(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1); void :ref:`lineLoopBegin`(); void :ref:`lineLoopSetColor`(const :ref:`Color`& Color); void :ref:`lineLoopSetColorFree`(const :ref:`Color`& Color0, const :ref:`Color`& Color1); void :ref:`batchLineLoop`(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1); void :ref:`batchLineLoop`(const :ref:`Float`& x0, const :ref:`Float`& y0); void :ref:`batchLineLoop`(const :ref:`Vector2f`& vector1, const :ref:`Vector2f`& vector2); void :ref:`batchLineLoop`(const :ref:`Vector2f`& vector1); void :ref:`lineStripBegin`(); void :ref:`lineStripSetColor`(const :ref:`Color`& Color); void :ref:`lineStripSetColorFree`(const :ref:`Color`& Color0, const :ref:`Color`& Color1); void :ref:`batchLineStrip`(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1); void :ref:`batchLineStrip`(const :ref:`Float`& x0, const :ref:`Float`& y0); void :ref:`batchLineStrip`(const :ref:`Vector2f`& vector1, const :ref:`Vector2f`& vector2); void :ref:`batchLineStrip`(const :ref:`Vector2f`& vector1); void :ref:`triangleFanBegin`(); void :ref:`triangleFanSetColor`(const :ref:`Color`& Color); void :ref:`triangleFanSetColorFree`(const :ref:`Color`& Color0, const :ref:`Color`& Color1, const :ref:`Color`& Color2); void :ref:`triangleFanSetTexCoord`(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2); void :ref:`batchTriangleFan`(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2); void :ref:`batchTriangleFan`(const :ref:`Float`& x0, const :ref:`Float`& y0); void :ref:`trianglesBegin`(); void :ref:`trianglesSetColor`(const :ref:`Color`& Color); void :ref:`trianglesSetColorFree`(const :ref:`Color`& Color0, const :ref:`Color`& Color1, const :ref:`Color`& Color2); void :ref:`trianglesSetTexCoord`(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2); void :ref:`batchTriangle`(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2); void :ref:`polygonSetColor`(const :ref:`Color`& Color); void :ref:`batchPolygon`(const :ref:`Polygon2f`& Polygon); void :ref:`setLineWidth`(const :ref:`Float`& lineWidth); :ref:`Float` :ref:`getLineWidth`(); void :ref:`setPointSize`(const :ref:`Float`& pointSize); :ref:`Float` :ref:`getPointSize`(); void :ref:`batchPolygonByPoint`(const :ref:`Float`& x, const :ref:`Float`& y); void :ref:`batchPolygonByPoint`(const :ref:`Vector2f`& Vector); void :ref:`setForceBlendModeChange`(const bool& Force); const bool& :ref:`getForceBlendModeChange`() const; }; .. _details-class_e_e_1_1_graphics_1_1_batch_renderer: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A batch rendering class. Construction ------------ .. index:: pair: function; BatchRenderer .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a0e844154215e3eda8c01fd3990ea970a: .. ref-code-block:: cpp :class: doxyrest-title-code-block BatchRenderer(const unsigned int& Prealloc) Construct with a defined number of vertexs preallocated Methods ------- .. index:: pair: function; allocVertexs .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ab82a30a681f46c0380b7d1cb548c8e9f: .. ref-code-block:: cpp :class: doxyrest-title-code-block void allocVertexs(const unsigned int& size) Allocate space for vertexs .. index:: pair: function; setTexture .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1aab68b9ccbd8282afb45979963cc6c9a9: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setTexture(const :ref:`Texture`* texture, :ref:`Texture::CoordinateType` coordinateType = :ref:`Texture::CoordinateType::Normalized`) Set the current texture to render on the batch ( if you change the texture and you have batched something, this will be renderer immediately ) .. index:: pair: function; setBlendMode .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1adef013bbddfa8e4d9f038804c326ba78: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setBlendMode(const :ref:`BlendMode`& blend) Set the predefined blending function to use on the batch .. index:: pair: function; setBatchForceRendering .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ad2026d34e3dd2314e8a7abcb97a49b04: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setBatchForceRendering(const bool& force) Set if every batch call have to be immediately rendered .. index:: pair: function; getBatchForceRendering .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1afba6ef020b5347d6648ca72d52e17102: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool getBatchForceRendering() const Get if the rendering is force on every batch call .. index:: pair: function; draw .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1af6a58aec237f3a878600d238b2280e51: .. ref-code-block:: cpp :class: doxyrest-title-code-block void draw() Force the batch rendering .. index:: pair: function; drawOpt .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a8217c0e543c7f993617963ee87ad5c96: .. ref-code-block:: cpp :class: doxyrest-title-code-block void drawOpt() Force the batch rendering only if BatchForceRendering is enable .. index:: pair: function; setBatchRotation .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a7a775d728c53a0b1f18ce4da0c42db44: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setBatchRotation(const :ref:`Float`& Rotation) Set the rotation of the rendered vertex. .. index:: pair: function; getBatchRotation .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ac2479613892e911d2b8d8372ec9dcd4d: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Float` getBatchRotation() const Get the rotation of the rendered vertex. .. index:: pair: function; setBatchScale .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a0e56467e7374896a406fc1aeefc6950c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setBatchScale(const :ref:`Vector2f`& Scale) Set the scale of the rendered vertex. .. index:: pair: function; setBatchScale .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a14fe4dd3b8c1a64a3c1ee38d81140517: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setBatchScale(const :ref:`Float`& Scale) Set the scale of the rendered vertex. .. index:: pair: function; getBatchScale .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a4e65038aa514680c291e814846ea3769: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Vector2f` getBatchScale() const Get the scale of the rendered vertex. .. index:: pair: function; setBatchPosition .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a4fed7ab84b2f502ae66dc2b713d6a6dc: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setBatchPosition(const :ref:`Vector2f` Pos) The batch position .. index:: pair: function; getBatchPosition .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1aeb8a6e56aa43a1c6d8be7a1a51dd7b32: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Vector2f` getBatchPosition() const .. rubric:: Returns: The batch position .. index:: pair: function; setBatchCenter .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a4a93c6e15987c52d560e323ba8780359: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setBatchCenter(const :ref:`Vector2f` Pos) This will set a center position for rotating and scaling the batched vertex. .. index:: pair: function; getBatchCenter .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a082ca0c52f133b19da420015711f6153: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Vector2f` getBatchCenter() const .. rubric:: Returns: The batch center position .. index:: pair: function; batchQuadEx .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a56ea7f1ed24e2c52130aa1fd89bed00f: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchQuadEx( :ref:`Float` x, :ref:`Float` y, :ref:`Float` width, :ref:`Float` height, :ref:`Float` angle = 0.0f, :ref:`Vector2f` scale = Vector2f::One, :ref:`OriginPoint` originPoint = :ref:`OriginPoint`(OriginPoint::OriginCenter) ) Add to the batch a quad ( this will change your batch rendering method to PRIMITIVE_QUADS, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchQuad .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a8543255f0583c362ca319eac0501d2ee: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchQuad(const :ref:`Float`& x, const :ref:`Float`& y, const :ref:`Float`& width, const :ref:`Float`& height) Add to the batch a quad ( this will change your batch rendering method to PRIMITIVE_QUADS, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchQuad .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1aefbd6e21316b79dcf8fb66e786e44511: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchQuad(const :ref:`Rectf`& rect) Add to the batch a quad ( this will change your batch rendering method to PRIMITIVE_QUADS, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchQuadFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a1ab992cf2149666b0fe295c150bd03aa: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchQuadFree( const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2, const :ref:`Float`& x3, const :ref:`Float`& y3 ) Add to the batch a quad with the vertex freely seted ( this will change your batch rendering method to PRIMITIVE_QUADS, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchQuadFreeEx .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a528c08e328762f3ea72c4b29ee0a1f9a: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchQuadFreeEx( const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2, const :ref:`Float`& x3, const :ref:`Float`& y3, const :ref:`Float`& Angle = 0.0f, const :ref:`Float`& Scale = 1.0f ) Add to the batch a quad with the vertex freely seted ( this will change your batch rendering method to PRIMITIVE_QUADS, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; quadsBegin .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1abbcb4f744a809e10950c310b5a0a4fcf: .. ref-code-block:: cpp :class: doxyrest-title-code-block void quadsBegin() This will set as the default batch rendering to GL_QUADS. WIll reset the texture TexCoord rendering to the whole texture. Will reset the default color rendering to ColorA(255,255,255,255). .. index:: pair: function; quadsSetTexCoord .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1acee970d1e3ddc58c6d5c8db3c9dc4aac: .. ref-code-block:: cpp :class: doxyrest-title-code-block void quadsSetTexCoord(const :ref:`Float`& tl_u, const :ref:`Float`& tl_v, const :ref:`Float`& br_u, const :ref:`Float`& br_v) Set the texture sector to be rendered .. index:: pair: function; quadsSetTexCoord .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a4565dc6414d39870b84d99d6ec6de0ea: .. ref-code-block:: cpp :class: doxyrest-title-code-block void quadsSetTexCoord(const :ref:`Rectf`& region) Set the texture sector to be rendered .. index:: pair: function; quadsSetTexCoordFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a5e479ed05685eba8f382be8999c15e7d: .. ref-code-block:: cpp :class: doxyrest-title-code-block void quadsSetTexCoordFree( const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2, const :ref:`Float`& x3, const :ref:`Float`& y3 ) Set the texture sector to be rendered but freely seted .. index:: pair: function; quadsSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a79f5952b4816fb0d8bf5463851abb3e7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void quadsSetColor(const :ref:`Color`& Color) Set the quad color .. index:: pair: function; quadsSetColorFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a4445e85de52a3ecf3af9e85407524946: .. ref-code-block:: cpp :class: doxyrest-title-code-block void quadsSetColorFree(const :ref:`Color`& Color0, const :ref:`Color`& Color1, const :ref:`Color`& Color2, const :ref:`Color`& Color3) Set the quad color per vertex .. index:: pair: function; pointsBegin .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ad57ed076af56d31f0dea3992a2f585f9: .. ref-code-block:: cpp :class: doxyrest-title-code-block void pointsBegin() This will set as the default batch rendering to PRIMITIVE_POINTS. And will reset the point color to ColorA(255,255,255,255). .. index:: pair: function; pointSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a7b77a91a99eb5809f6f9b5882a097074: .. ref-code-block:: cpp :class: doxyrest-title-code-block void pointSetColor(const :ref:`Color`& Color) Set the point color .. index:: pair: function; pointSetTexCoord .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a58d1bde7f68c5592de68cf50372c15ec: .. ref-code-block:: cpp :class: doxyrest-title-code-block void pointSetTexCoord(const :ref:`Float`& x, const :ref:`Float`& y) Set the texture sector to be rendered .. index:: pair: function; batchPoint .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a60ccd1fd7b5c2e087bb9d0a0a1b67148: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchPoint(const :ref:`Float`& x, const :ref:`Float`& y, const :ref:`PrimitiveType`& primitiveType = :ref:`PRIMITIVE_POINTS`) Adds to the batch a point .. index:: pair: function; batchPointList .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ab2be5e73cfa048556d6d7b5a87455942: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchPointList(const std::vector<:ref:`VertexData`>& points, const :ref:`PrimitiveType`& primitiveType = :ref:`PRIMITIVE_POINTS`) Adds to the batch a point list .. index:: pair: function; linesBegin .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1afdd7b10999d59c5271dd1acdd81db70f: .. ref-code-block:: cpp :class: doxyrest-title-code-block void linesBegin() This will set as the default batch rendering to PRIMITIVE_LINES. And will reset the line color to ColorA(255,255,255,255). .. index:: pair: function; linesSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a69cc55d4599fc92a341d0ea99b256311: .. ref-code-block:: cpp :class: doxyrest-title-code-block void linesSetColor(const :ref:`Color`& Color) Set the line color .. index:: pair: function; linesSetColorFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a04eb2c1fb0c6a891f03c54e257783438: .. ref-code-block:: cpp :class: doxyrest-title-code-block void linesSetColorFree(const :ref:`Color`& Color0, const :ref:`Color`& Color1) Set the line color, per vertex .. index:: pair: function; batchLine .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a365c200aba2ec0e0e36c2a678d9f7ded: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLine(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1) Add to the batch a line ( this will change your batch rendering method to PRIMITIVE_LINES, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; lineLoopBegin .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1af97f0c43cba84f29d6cd8afb645cdd20: .. ref-code-block:: cpp :class: doxyrest-title-code-block void lineLoopBegin() This will set as the default batch rendering to GL_LINE_LOOP. And will reset the line color to ColorA(255,255,255,255). .. index:: pair: function; lineLoopSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a59c6c305c5a071b40dfca3f302d78b85: .. ref-code-block:: cpp :class: doxyrest-title-code-block void lineLoopSetColor(const :ref:`Color`& Color) Set the line color .. index:: pair: function; lineLoopSetColorFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a69a7ce64fe738491e696d950a5643bc6: .. ref-code-block:: cpp :class: doxyrest-title-code-block void lineLoopSetColorFree(const :ref:`Color`& Color0, const :ref:`Color`& Color1) Set the line color, per vertex .. index:: pair: function; batchLineLoop .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1afcd72bbc132f9615a17199862549bca6: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineLoop(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1) Add to the batch a line ( this will change your batch rendering method to PRIMITIVE_LINE_LOOP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchLineLoop .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a70cc65c292c53589f7e651e1961cee39: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineLoop(const :ref:`Float`& x0, const :ref:`Float`& y0) Add to the batch a point to the line loop batch ( this will change your batch rendering method to PRIMITIVE_LINE_LOOP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchLineLoop .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a297a4f721f09517f089a21812717bff0: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineLoop(const :ref:`Vector2f`& vector1, const :ref:`Vector2f`& vector2) Add to the batch a line ( this will change your batch rendering method to PRIMITIVE_LINE_LOOP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchLineLoop .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ae08faa7fd0ab3b935c3b94af5a34ec73: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineLoop(const :ref:`Vector2f`& vector1) Add to the batch a point to the line loop batch ( this will change your batch rendering method to PRIMITIVE_LINE_LOOP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; lineStripBegin .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a9aed1207044073245f20fb9f21540c9e: .. ref-code-block:: cpp :class: doxyrest-title-code-block void lineStripBegin() This will set as the default batch rendering to PRIMITIVE_LINE_STRIP. And will reset the line color to ColorA(255,255,255,255). .. index:: pair: function; lineStripSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a2f21e1aedfc3aa639119b5dd11c7aa68: .. ref-code-block:: cpp :class: doxyrest-title-code-block void lineStripSetColor(const :ref:`Color`& Color) Set the line color .. index:: pair: function; lineStripSetColorFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a93e33fde1a92f07535731a01459638c7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void lineStripSetColorFree(const :ref:`Color`& Color0, const :ref:`Color`& Color1) Set the line color, per vertex .. index:: pair: function; batchLineStrip .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ae8f6cd201f3c56123ce6662dc65a6aab: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineStrip(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1) Add to the batch a line ( this will change your batch rendering method to PRIMITIVE_LINE_STRIP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchLineStrip .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a76d72c3669b98683dd3e8757580d53d7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineStrip(const :ref:`Float`& x0, const :ref:`Float`& y0) Add to the batch a point to the line strip batch ( this will change your batch rendering method to PRIMITIVE_LINE_STRIP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchLineStrip .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a4c7c11458a82f5e718a161071c2d027e: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineStrip(const :ref:`Vector2f`& vector1, const :ref:`Vector2f`& vector2) Add to the batch a line ( this will change your batch rendering method to PRIMITIVE_LINE_STRIP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchLineStrip .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1af359bc82e4548ebfc4883ff279416721: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchLineStrip(const :ref:`Vector2f`& vector1) Add to the batch a point to the line strip batch ( this will change your batch rendering method to PRIMITIVE_LINE_STRIP, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; triangleFanBegin .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a9414b070a22f876f15a4f1473a56dedc: .. ref-code-block:: cpp :class: doxyrest-title-code-block void triangleFanBegin() This will set as the default batch rendering to PRIMITIVE_TRIANGLE_FAN. And will reset the line color to ColorA(255,255,255,255). .. index:: pair: function; triangleFanSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a12fc253ec2fa5f56e636c22c6f454973: .. ref-code-block:: cpp :class: doxyrest-title-code-block void triangleFanSetColor(const :ref:`Color`& Color) Set the triangle fan color .. index:: pair: function; triangleFanSetColorFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a0b1cecd67095e9d4fe15473631110e76: .. ref-code-block:: cpp :class: doxyrest-title-code-block void triangleFanSetColorFree(const :ref:`Color`& Color0, const :ref:`Color`& Color1, const :ref:`Color`& Color2) Set the triangle fan color, per vertex .. index:: pair: function; triangleFanSetTexCoord .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a8f98f22e191f8f86971173a139410759: .. ref-code-block:: cpp :class: doxyrest-title-code-block void triangleFanSetTexCoord(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2) Set the texture sector to be rendered but freely seted .. index:: pair: function; batchTriangleFan .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ab29569249d504039520f31eec6bd2e36: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchTriangleFan(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2) Add to the batch a triangle fan ( this will change your batch rendering method to PRIMITIVE_TRIANGLE_FAN, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; batchTriangleFan .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ac4504906006af5f0aaf8e7815770f7cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchTriangleFan(const :ref:`Float`& x0, const :ref:`Float`& y0) Add to the batch a triangle fan ( this will change your batch rendering method to PRIMITIVE_TRIANGLE_FAN, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; trianglesBegin .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a11064ba8276cb8c4bae33fc0998cc554: .. ref-code-block:: cpp :class: doxyrest-title-code-block void trianglesBegin() This will set as the default batch rendering to PRIMITIVE_TRIANGLES. And will reset the line color to ColorA(255,255,255,255). .. index:: pair: function; trianglesSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a3ae0ec3470d242543147194fd7e5fc07: .. ref-code-block:: cpp :class: doxyrest-title-code-block void trianglesSetColor(const :ref:`Color`& Color) Set the triangles color .. index:: pair: function; trianglesSetColorFree .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a027d70fe5782cab4e25fe3d665ddace3: .. ref-code-block:: cpp :class: doxyrest-title-code-block void trianglesSetColorFree(const :ref:`Color`& Color0, const :ref:`Color`& Color1, const :ref:`Color`& Color2) Set the triangles color, per vertex .. index:: pair: function; trianglesSetTexCoord .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a766c028fed89e0172b73fb002374bdd5: .. ref-code-block:: cpp :class: doxyrest-title-code-block void trianglesSetTexCoord(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2) Set the texture sector to be rendered but freely seted .. index:: pair: function; batchTriangle .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1af206c617a3e14c4d9057b86a8c05ccbd: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchTriangle(const :ref:`Float`& x0, const :ref:`Float`& y0, const :ref:`Float`& x1, const :ref:`Float`& y1, const :ref:`Float`& x2, const :ref:`Float`& y2) Add to the batch a triangle ( this will change your batch rendering method to PRIMITIVE_TRIANGLES, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; polygonSetColor .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a9d9420a534b15ce7ae734971f1cad674: .. ref-code-block:: cpp :class: doxyrest-title-code-block void polygonSetColor(const :ref:`Color`& Color) Set the polygon color .. index:: pair: function; batchPolygon .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1af5e1194e84af43aad798abecb76ce4ec: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchPolygon(const :ref:`Polygon2f`& Polygon) Add to the batch a polygon ( this will change your batch rendering method to PRIMITIVE_POLYGON, so if you were using another one will Draw all the batched vertexs first ) .. index:: pair: function; setLineWidth .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a05a909af406490f50639230f42b223a7: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setLineWidth(const :ref:`Float`& lineWidth) Set the line width .. index:: pair: function; getLineWidth .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1aec8e92e1b2c149b3534378492372cf97: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Float` getLineWidth() .. rubric:: Returns: The current line width .. index:: pair: function; setPointSize .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a062d6a157c5d8ef257e2aca1aa221375: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setPointSize(const :ref:`Float`& pointSize) Set the point size .. index:: pair: function; getPointSize .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a4124fb9d45dbbffed4a9f4b9dca36b39: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Float` getPointSize() .. rubric:: Returns: The current point size .. index:: pair: function; batchPolygonByPoint .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1a8dc268fe2f4216bd25c64dd529b3e375: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchPolygonByPoint(const :ref:`Float`& x, const :ref:`Float`& y) Batch a poligon adding one by one vector .. index:: pair: function; batchPolygonByPoint .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ace2b6fb94747855fbaf85d51142f2142: .. ref-code-block:: cpp :class: doxyrest-title-code-block void batchPolygonByPoint(const :ref:`Vector2f`& Vector) Batch a poligon adding one by one vector .. index:: pair: function; setForceBlendModeChange .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ade1e037df7df0d77629997adc9a0b2bd: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setForceBlendModeChange(const bool& Force) Foce the blending mode change, ignoring if it's the same that before ( so you can change the blend mode and restore it without problems ) .. index:: pair: function; getForceBlendModeChange .. _doxid-class_e_e_1_1_graphics_1_1_batch_renderer_1ae741071204f0753c99b72cd248f3373f: .. ref-code-block:: cpp :class: doxyrest-title-code-block const bool& getForceBlendModeChange() const .. rubric:: Returns: If the blending mode switch is forced