PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::GLTextureMesh Class Reference

#include <GLTextureMesh.h>

Inheritance diagram for dyno::GLTextureMesh:
Collaboration diagram for dyno::GLTextureMesh:

Public Member Functions

 GLTextureMesh ()
 
 ~GLTextureMesh () override
 
void create () final
 
void release () final
 
void load (const std::shared_ptr< TextureMesh > mesh)
 
void updateGL ()
 
XBuffer< Vec3f > & vertices ()
 
XBuffer< Vec3f > & normals ()
 
XBuffer< Vec2f > & texCoords ()
 
std::vector< std::shared_ptr< GLShape > > & shapes ()
 
std::vector< std::shared_ptr< GLMaterial > > & materials ()
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Private Attributes

XBuffer< Vec3fmVertices
 
XBuffer< Vec3fmNormal
 
XBuffer< Vec2fmTexCoord
 
std::vector< std::shared_ptr< GLShape > > mShapes
 
std::vector< std::shared_ptr< GLMaterial > > mMaterials
 
bool mInitialized = false
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Public Attributes inherited from dyno::GraphicsObject
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from dyno::GraphicsObject
virtual bool isValid () const
 
 GraphicsObject ()=default
 
virtual ~GraphicsObject ()=default
 
 GraphicsObject (const GraphicsObject &)=delete
 
GraphicsObjectoperator= (const GraphicsObject &)=delete
 

Detailed Description

Definition at line 81 of file GLTextureMesh.h.

Constructor & Destructor Documentation

◆ GLTextureMesh()

dyno::GLTextureMesh::GLTextureMesh ( )

Definition at line 76 of file GLTextureMesh.cpp.

◆ ~GLTextureMesh()

dyno::GLTextureMesh::~GLTextureMesh ( )
override

Definition at line 80 of file GLTextureMesh.cpp.

Member Function Documentation

◆ create()

void dyno::GLTextureMesh::create ( )
finalvirtual

Implements dyno::GraphicsObject.

Definition at line 84 of file GLTextureMesh.cpp.

Here is the caller graph for this function:

◆ load()

void dyno::GLTextureMesh::load ( const std::shared_ptr< TextureMesh > mesh)

Definition at line 114 of file GLTextureMesh.cpp.

◆ materials()

std::vector< std::shared_ptr< GLMaterial > > & dyno::GLTextureMesh::materials ( )
inline

Definition at line 99 of file GLTextureMesh.h.

◆ normals()

XBuffer< Vec3f > & dyno::GLTextureMesh::normals ( )
inline

Definition at line 95 of file GLTextureMesh.h.

◆ release()

void dyno::GLTextureMesh::release ( )
finalvirtual

Implements dyno::GraphicsObject.

Definition at line 96 of file GLTextureMesh.cpp.

◆ shapes()

std::vector< std::shared_ptr< GLShape > > & dyno::GLTextureMesh::shapes ( )
inline

Definition at line 98 of file GLTextureMesh.h.

◆ texCoords()

XBuffer< Vec2f > & dyno::GLTextureMesh::texCoords ( )
inline

Definition at line 96 of file GLTextureMesh.h.

◆ updateGL()

void dyno::GLTextureMesh::updateGL ( )

Definition at line 200 of file GLTextureMesh.cpp.

Here is the call graph for this function:

◆ vertices()

XBuffer< Vec3f > & dyno::GLTextureMesh::vertices ( )
inline

Definition at line 94 of file GLTextureMesh.h.

Member Data Documentation

◆ mInitialized

bool dyno::GLTextureMesh::mInitialized = false
private

Definition at line 109 of file GLTextureMesh.h.

◆ mMaterials

std::vector<std::shared_ptr<GLMaterial> > dyno::GLTextureMesh::mMaterials
private

Definition at line 107 of file GLTextureMesh.h.

◆ mNormal

XBuffer<Vec3f> dyno::GLTextureMesh::mNormal
private

Definition at line 103 of file GLTextureMesh.h.

◆ mShapes

std::vector<std::shared_ptr<GLShape> > dyno::GLTextureMesh::mShapes
private

Definition at line 106 of file GLTextureMesh.h.

◆ mTexCoord

XBuffer<Vec2f> dyno::GLTextureMesh::mTexCoord
private

Definition at line 104 of file GLTextureMesh.h.

◆ mVertices

XBuffer<Vec3f> dyno::GLTextureMesh::mVertices
private

Definition at line 102 of file GLTextureMesh.h.


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