Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ClientMap::DrawDescriptor Struct Reference
+ Collaboration diagram for ClientMap::DrawDescriptor:

Public Member Functions

 DrawDescriptor (v3s16 pos, scene::IMeshBuffer *buffer, bool reuse_material)
 
 DrawDescriptor (v3s16 pos, const PartialMeshBuffer *buffer)
 
video::SMaterial & getMaterial ()
 
u32 draw (video::IVideoDriver *driver)
 

Public Attributes

v3s16 m_pos
 
union { 
 
   scene::IMeshBuffer *   m_buffer 
 
   const PartialMeshBuffer *   m_partial_buffer 
 
};  
 
bool m_reuse_material:1
 
bool m_use_partial_buffer:1
 

Constructor & Destructor Documentation

◆ DrawDescriptor() [1/2]

ClientMap::DrawDescriptor::DrawDescriptor ( v3s16 pos,
scene::IMeshBuffer * buffer,
bool reuse_material )
inline

◆ DrawDescriptor() [2/2]

ClientMap::DrawDescriptor::DrawDescriptor ( v3s16 pos,
const PartialMeshBuffer * buffer )
inline

Member Function Documentation

◆ draw()

u32 ClientMap::DrawDescriptor::draw ( video::IVideoDriver * driver)
Returns
index count

◆ getMaterial()

video::SMaterial & ClientMap::DrawDescriptor::getMaterial ( )

References PartialMeshBuffer::getBuffer(), getMaterial(), m_buffer, m_partial_buffer, and m_use_partial_buffer.

Referenced by getMaterial().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ [union]

◆ m_buffer

scene::IMeshBuffer* ClientMap::DrawDescriptor::m_buffer

Referenced by getMaterial().

◆ m_partial_buffer

const PartialMeshBuffer* ClientMap::DrawDescriptor::m_partial_buffer

Referenced by getMaterial().

◆ m_pos

v3s16 ClientMap::DrawDescriptor::m_pos

◆ m_reuse_material

bool ClientMap::DrawDescriptor::m_reuse_material

◆ m_use_partial_buffer

bool ClientMap::DrawDescriptor::m_use_partial_buffer

Referenced by getMaterial().


The documentation for this struct was generated from the following files: