FreeTypeGL (object)¶
Members¶
UInt32 | indexSize | Size of the index. |
UInt32 | vertexSize | Size of the vertex. |
UInt32 | maxVerticesCount | Number max of vertices per element. |
UInt32 | elementCount | Number of element to draw. |
Methods¶
Methods in detail¶
FreeTypeGL ( in FreeTypeGL other )
copy constructor
FreeTypeGL ()
default constructor
FreeTypeGL.allocAndSetVerticesSize! ( in UInt32 elementCount, in UInt32 maxVerticesCount )
Allocation of the vertices and indices buffers for parallel insertion, and sets the size if the element to draw Buffers we be re-allocated if either “elementCount” or “maxVerticesCount” change. Must be called before inserting new vertices.
elementCount | Number of string to draw. |
maxVerticesCount | Maximin number of character per string. |
FreeTypeGL.allocVertices! ( in UInt32 elementCount, in UInt32 maxVerticesCount )
Allocation of the vertices and indices buffers for sequential insertion. Buffers we be re-allocated if either “elementCount” or “maxVerticesCount” change. Should be called before pushing vertices to avoid on the fly memory allocation that slows down the rendering.
elementCount | Number of string to draw. |
maxVerticesCount | Maximin number of character per string. |
FreeTypeGL.clearVertices! ()
Clears (but not delete memory) the vertices and indices buffers content. Need to be call before pushing a new set of vertices.
FreeTypeGL FreeTypeGL.clone? ()
clone method
FreeTypeGL.createVertices! ( in String attributes, in UInt32 mode, in UInt32 vertexSize, in UInt32 indexSize )
Creates the OpenGL buffers.
attributes | GLSL attributes list (as a string) |
mode | GL drawing mode (GL_LINES, GL_TRIANGLES, ...) |
vertexSize | Vertex size |
indexSize | Index size |
FreeTypeGL.delete! ()
Deletes the FreeTypeGL object.
SInt32 FreeTypeGL.getAttributeIndex? ( in UInt32 index )
Gets the GLSL attribute index.
index | The index in the attribute array. |
FreeTypeGL.getAttributeName? ( in UInt32 index, io String name )
Gets the GLSL attribute name.
index | The index in the attribute array. |
FreeTypeGL.getAttributePointer? ( in UInt32 index, io Data data )
Gets the number of string drawn.
UInt32 FreeTypeGL.getAttributeSize? ( in UInt32 index )
Gets the GLSL attribute size.
index | The index in the attribute array. |
UInt32 FreeTypeGL.getAttributeStride? ( in UInt32 index )
Gets the GLSL attribute stride.
index | The index in the attribute array. |
UInt32 FreeTypeGL.getAttributeType? ( in UInt32 index )
Gets the GLSL attribute type.
index | The index in the attribute array. |
UInt32 FreeTypeGL.getElementCount? ()
Gets the number of elements to draw.
UInt32 FreeTypeGL.getGPUISize? ()
Gets the size of the allocated indices data on the GPU. Used to load the buffers on the GPU.
UInt32 FreeTypeGL.getGPUVSize? ()
Gets the size of the allocated vertices data on the GPU. Used to load the buffers on the GPU.
UInt32 FreeTypeGL.getIndexSize? ()
Gets the size of GL index.
FreeTypeGL.getIndicesData? ( io Data data )
Gets the OpenGL indices buffer as raw data.
UInt32 FreeTypeGL.getIndicesID? ()
Gets the OpenGL indices buffer ID.
UInt32 FreeTypeGL.getMaxVerticesCount? ()
Gets the maximum number of vertices per element.
UInt32 FreeTypeGL.getMode? ()
Gets the OpenGL drawing mode (GL_LINES, GL_TRIANGLES, ...)
UInt32 FreeTypeGL.getNumberIndices? ()
Gets the number of vertices to draw.
UInt32 FreeTypeGL.getNumberIndicesItems? ()
Gets the number of vertices to draw.
UInt32 FreeTypeGL.getNumberVertices? ()
Gets the number of vertices to draw.
UInt32 FreeTypeGL.getNumberVerticesItems? ()
Gets the number of items per vertices (OpenGL vertex attributes).
UInt32 FreeTypeGL.getState? ()
Gets the drawing state (CLEAN, FROZEN or DIRTY).
UInt32 FreeTypeGL.getVertexSize? ()
Gets the size of GL vertex.
FreeTypeGL.getVerticesData? ( io Data data )
Gets the OpenGL vertices buffer as raw data.
UInt32 FreeTypeGL.getVerticesID? ()
Gets the OpenGL vertices buffer ID.
FreeTypeGL.init! ()
Initializes a FreeTypeGL object.
FreeTypeGL.insertVerticesList! ( in UInt32 index, in UInt32 verticesCount, in Data vertices, in Data indices )
Inserts a list of vertices and their indices to the buffers, thread-safe.
index | The index of the element |
verticesCount | Number of vertices to add. |
vertices | vertices raw data. |
indices | Indices raw data. |
Boolean FreeTypeGL.isAttributeNormalized? ( in UInt32 index )
Checks if the GLSL attribute is normalized.
index | The index in the attribute array. |
FreeTypeGL.pushVertices! ( in Data vertices, in Data indices )
Pushs vertices and their indices to the buffers.
vertices | vertices raw data. |
indices | Indices raw data. |
FreeTypeGL.pushVerticesList! ( in UInt32 verticesCount, in Data vertices, in Data indices )
Pushs a list of vertices and their indices to the buffers.
verticesCount | Number of vertices to add. |
vertices | vertices raw data. |
indices | Indices raw data. |
FreeTypeGL.setAttributeIndex! ( in UInt32 index, in SInt32 attrIndex )
Sets the GLSL attribute index.
index | The index in the attribute array. |
attrIndex | The index of the attribute in the GLSL shader. |
FreeTypeGL.setGPUISize! ( in UInt32 size )
Sets the size of the allocated indices data on the GPU. Used to load the buffers on the GPU.
FreeTypeGL.setGPUVSize! ( in UInt32 size )
Sets the size of the allocated vertices data on the GPU. Used to load the buffers on the GPU.
FreeTypeGL.setIndicesID! ( in UInt32 id )
Sets the OpenGL index buffer ID.
FreeTypeGL.setMode! ( in UInt32 mode )
Sets the OpenGL drawing mode (GL_LINES, GL_TRIANGLES, ...)
FreeTypeGL.setState! ( in UInt32 state )
Sets the drawing state (CLEAN, FROZEN or DIRTY).
FreeTypeGL.setVerticesID! ( in UInt32 id )
Sets the OpenGL vertex buffer ID.
~ FreeTypeGL ()
Destructor, automatically called.