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
 
bool visible {true}
 
uint32 layer {0}
 
uint32 vertexFirst
 
uint32 vertexCount
 
uint32 paramFirst
 
uint32 paramCount
 
uint32 lineListCount {0}
 
uint32 lineStripCount {0}
 
uint32 triPlainCount {0}
 
uint32 triImageCount {0}
 
uint32 triGlyphCount {0}
 

Member Data Documentation

Unique session identifier returned by beginDraw().

uint32 layer {0}

Drawing layer, the sessions of a layer are entirely drawn above the sessions of the lower layers, whatever their primitive types.

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.