Graphite  Version 3
An experimental 3D geometry processing program
GLUP::PrimitiveInfo Struct Reference

Stores the programs and vertex array object used to display a primitive of a given type. More...

#include <geogram_gfx/GLUP/GLUP_context.h>

Public Types

typedef Numeric::uint64 ShaderKey
 

Public Member Functions

 PrimitiveInfo ()
 PrimitiveInfo constructor.
 
 PrimitiveInfo (const PrimitiveInfo &rhs)
 PrimitiveInfo copy constructor. More...
 
 ~PrimitiveInfo ()
 PrimitiveInfo destructor. More...
 
bool program_is_initialized (ShaderKey k) const
 
GLuint program (ShaderKey k) const
 

Public Attributes

GLenum GL_primitive
 
std::map< ShaderKey, GLuint > shader_map
 
GLuint VAO
 
GLuint elements_VBO
 
index_t nb_elements_per_primitive
 
index_tprimitive_elements
 
bool vertex_gather_mode
 
bool implemented
 

Detailed Description

Stores the programs and vertex array object used to display a primitive of a given type.

Definition at line 1012 of file GLUP_context.h.

Constructor & Destructor Documentation

◆ PrimitiveInfo()

GLUP::PrimitiveInfo::PrimitiveInfo ( const PrimitiveInfo rhs)
inline

PrimitiveInfo copy constructor.

Parameters
[in]rhsthe PrimitiveInfo to be copied.

Should be only called with uninitialized PrimitiveInfo (else triggers an assertion failure).

Definition at line 1035 of file GLUP_context.h.

◆ ~PrimitiveInfo()

GLUP::PrimitiveInfo::~PrimitiveInfo ( )
inline

PrimitiveInfo destructor.

Deletes the programs and vertex array object if need be.

Definition at line 1051 of file GLUP_context.h.


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