Lysa  0.0
Lysa 3D Engine
DrawSession Struct Reference

Detailed Description

Groups all vertices and draw parameters recorded between a beginDraw/endDraw pair.

Public Attributes

unique_id id
 Unique session identifier returned by beginDraw(). More...
 
bool visible {true}
 When false the session's primitives are hidden without being erased. More...
 
uint32 vertexFirst
 Offset of the first vertex owned by this session in the shared vertex buffer. More...
 
uint32 vertexCount
 Total number of vertices belonging to this session. More...
 
uint32 paramFirst
 Offset of the first DrawParam owned by this session in the params buffer. More...
 
uint32 paramCount
 Total number of DrawParam entries belonging to this session. More...
 
uint32 lineListCount {0}
 Number of LINE_LIST primitives in this session. More...
 
uint32 lineStripCount {0}
 Number of LINE_STRIP primitives in this session. More...
 
uint32 triPlainCount {0}
 Number of TRI_PLAIN primitives in this session. More...
 
uint32 triImageCount {0}
 Number of TRI_IMAGE primitives in this session. More...
 
uint32 triGlyphCount {0}
 Number of TRI_GLYPH primitives in this session. More...
 

Member Data Documentation

Unique session identifier returned by beginDraw().

uint32 lineListCount {0}

Number of LINE_LIST primitives in this session.

uint32 lineStripCount {0}

Number of LINE_STRIP primitives in this session.

uint32 paramCount

Total number of DrawParam entries belonging to this session.

uint32 paramFirst

Offset of the first DrawParam owned by this session in the params buffer.

uint32 triGlyphCount {0}

Number of TRI_GLYPH primitives in this session.

uint32 triImageCount {0}

Number of TRI_IMAGE primitives in this session.

uint32 triPlainCount {0}

Number of TRI_PLAIN primitives in this session.

uint32 vertexCount

Total number of vertices belonging to this session.

uint32 vertexFirst

Offset of the first vertex owned by this session in the shared vertex buffer.

bool visible {true}

When false the session's primitives are hidden without being erased.