PeriDyno 0.8.2
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
gl::Mesh Class Reference

#include <Mesh.h>

Inheritance diagram for gl::Mesh:
Inheritance graph
[legend]
Collaboration diagram for gl::Mesh:
Collaboration graph
[legend]

Public Member Functions

virtual void create () override
 
virtual void release () override
 
virtual void draw (int instance=0)
 
- Public Member Functions inherited from gl::VertexArray
virtual void create () override
 
virtual void release () override
 
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)
 

Static Public Member Functions

static MeshSphere (float radius=1.f, int sectors=16, int stacks=8)
 
static MeshScreenQuad ()
 
static MeshPlane (float scale)
 

Private Attributes

Buffer vbo
 
Buffer ibo
 
int count
 

Additional Inherited Members

- Public Attributes inherited from gl::Object
unsigned int id = 0xFFFFFFFF
 
- Protected Member Functions inherited from gl::Object
virtual void create ()=0
 
virtual void release ()=0
 
virtual bool isValid () const
 
 Object ()=default
 
virtual ~Object ()=default
 
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 

Detailed Description

Definition at line 24 of file Mesh.h.

Member Function Documentation

◆ create()

void gl::Mesh::create ( )
overridevirtual

Reimplemented from gl::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:

◆ draw()

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

Definition at line 32 of file Mesh.cpp.

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

◆ Plane()

Mesh * gl::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 gl::Mesh::release ( )
overridevirtual

Reimplemented from gl::VertexArray.

Definition at line 20 of file Mesh.cpp.

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

◆ ScreenQuad()

Mesh * gl::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 * gl::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 gl::Mesh::count
private

Definition at line 41 of file Mesh.h.

◆ ibo

Buffer gl::Mesh::ibo
private

Definition at line 40 of file Mesh.h.

◆ vbo

Buffer gl::Mesh::vbo
private

Definition at line 39 of file Mesh.h.


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