Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
ManualMesh::Section Class Reference

#include <types.h>

Public Member Functions

 Section (std::string _name, ManualMesh::SectionIndexType _type, ManualMesh *_parent)
 
 ~Section ()
 
void Position (float x, float y, float z)
 
void Color (float r, float g, float b, float a=1.0f)
 
void TextureCoord (float u, float v)
 
void Triangle (int x, int y, int z)
 
void Line (int x, int y)
 
void Build ()
 
void Destroy (bool clear_data=false)
 
ManualMesh::SectionIndexType GetType ()
 

Public Attributes

bgfx::VertexLayout layout
 
std::vector< float > vertices = std::vector<float>()
 
std::string name = ""
 
bgfx::VertexBufferHandle vertex_buffer
 
bgfx::IndexBufferHandle index_buffer
 
uint64_t state_flags = 0
 
BlamColor color = BlamColor(0, 0, 0)
 
bgfx::TextureHandle texture = BGFX_INVALID_HANDLE
 
uint32_t texture_flags = UINT32_MAX
 
BlamVector4 texture_offset_scale = { 0.0f, 0.0f, 1.0f, 1.0f }
 

Constructor & Destructor Documentation

◆ Section()

ManualMesh::Section::Section ( std::string  _name,
ManualMesh::SectionIndexType  _type,
ManualMesh _parent 
)

◆ ~Section()

ManualMesh::Section::~Section ( )

Member Function Documentation

◆ Build()

void ManualMesh::Section::Build ( )
+ Here is the caller graph for this function:

◆ Color()

void ManualMesh::Section::Color ( float  r,
float  g,
float  b,
float  a = 1.0f 
)

◆ Destroy()

void ManualMesh::Section::Destroy ( bool  clear_data = false)

◆ GetType()

ManualMesh::SectionIndexType ManualMesh::Section::GetType ( )

◆ Line()

void ManualMesh::Section::Line ( int  x,
int  y 
)
+ Here is the caller graph for this function:

◆ Position()

void ManualMesh::Section::Position ( float  x,
float  y,
float  z 
)
+ Here is the caller graph for this function:

◆ TextureCoord()

void ManualMesh::Section::TextureCoord ( float  u,
float  v 
)

◆ Triangle()

void ManualMesh::Section::Triangle ( int  x,
int  y,
int  z 
)
+ Here is the caller graph for this function:

Member Data Documentation

◆ color

BlamColor ManualMesh::Section::color = BlamColor(0, 0, 0)

◆ index_buffer

bgfx::IndexBufferHandle ManualMesh::Section::index_buffer

◆ layout

bgfx::VertexLayout ManualMesh::Section::layout

◆ name

std::string ManualMesh::Section::name = ""

◆ state_flags

uint64_t ManualMesh::Section::state_flags = 0

◆ texture

bgfx::TextureHandle ManualMesh::Section::texture = BGFX_INVALID_HANDLE

◆ texture_flags

uint32_t ManualMesh::Section::texture_flags = UINT32_MAX

◆ texture_offset_scale

BlamVector4 ManualMesh::Section::texture_offset_scale = { 0.0f, 0.0f, 1.0f, 1.0f }

◆ vertex_buffer

bgfx::VertexBufferHandle ManualMesh::Section::vertex_buffer

◆ vertices

std::vector<float> ManualMesh::Section::vertices = std::vector<float>()

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