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

#include <Mesh.h>

Inheritance diagram for dyno::Mesh:
Collaboration diagram for dyno::Mesh:

Public Member Functions

virtual void create () override
 
virtual void release () override
 
virtual void draw (int instance=0)
 
- Public Member Functions inherited from dyno::VertexArray
virtual void bind ()
 
virtual void unbind ()
 
virtual void bindIndexBuffer (Buffer *buffer)
 
virtual void bindVertexBuffer (Buffer *buffer, int index, int size, int type, int stride, int offset, int divisor)
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Static Public Member Functions

static MeshSphere (float radius=1.f, int sectors=16, int stacks=8)
 
static MeshScreenQuad ()
 
static MeshPlane (float scale)
 
static MeshCube ()
 
- 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.
 

Private Attributes

Buffer vbo
 
Buffer ibo
 
int count
 

Additional Inherited Members

- 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 24 of file Mesh.h.

Member Function Documentation

◆ create()

void dyno::Mesh::create ( )
overridevirtual

Reimplemented from dyno::VertexArray.

Definition at line 11 of file Mesh.cpp.

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

◆ Cube()

Mesh * dyno::Mesh::Cube ( )
static

Definition at line 177 of file Mesh.cpp.

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

◆ draw()

void dyno::Mesh::draw ( int instance = 0)
virtual

Definition at line 32 of file Mesh.cpp.

Here is the call graph for this function:

◆ Plane()

Mesh * dyno::Mesh::Plane ( float scale)
static

Definition at line 156 of file Mesh.cpp.

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

◆ release()

void dyno::Mesh::release ( )
overridevirtual

Reimplemented from dyno::VertexArray.

Definition at line 20 of file Mesh.cpp.

Here is the call graph for this function:

◆ ScreenQuad()

Mesh * dyno::Mesh::ScreenQuad ( )
static

Definition at line 134 of file Mesh.cpp.

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

◆ Sphere()

Mesh * dyno::Mesh::Sphere ( float radius = 1.f,
int sectors = 16,
int stacks = 8 )
static

Definition at line 45 of file Mesh.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ count

int dyno::Mesh::count
private

Definition at line 42 of file Mesh.h.

◆ ibo

Buffer dyno::Mesh::ibo
private

Definition at line 41 of file Mesh.h.

◆ vbo

Buffer dyno::Mesh::vbo
private

Definition at line 40 of file Mesh.h.


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