Definition at line 550 of file GL_manager.
◆ kind
| Enumerator |
|---|
| kind_texture | |
| kind_buffer | |
| kind_list | |
| kind_memory | |
Definition at line 553 of file GL_manager.
◆ gsto_t()
| tools::sg::GL_manager::gsto_t::gsto_t |
( |
kind |
a_kind, |
|
|
int |
a_gl_id, |
|
|
size_t |
a_size, |
|
|
const float * |
a_data |
|
) |
| |
|
inline |
Definition at line 560 of file GL_manager.
567 tools::mem::increment(s_class().c_str());
570 size_t num =
m_size/
sizeof(float);
573 tools::mem::increment(tools::s_new().c_str());
◆ ~gsto_t()
| virtual tools::sg::GL_manager::gsto_t::~gsto_t |
( |
| ) |
|
|
inlinevirtual |
Definition at line 578 of file GL_manager.
580 ::glDeleteTextures(1,&
m_gl_id);
582 tools::mem::decrement(tools::s_tex().c_str());
585 #ifdef TOOLS_HAS_GL_VBO
588 tools::mem::decrement(tools::s_gsto().c_str());
593 #ifdef TOOLS_HAS_GL_LIST
596 tools::mem::decrement(tools::s_gsto().c_str());
605 tools::mem::decrement(tools::s_new().c_str());
609 tools::mem::decrement(s_class().c_str());
◆ bind()
| void tools::sg::GL_manager::gsto_t::bind |
( |
| ) |
const |
|
inline |
Definition at line 670 of file GL_manager.
672 ::glBindTexture(GL_TEXTURE_2D,
m_gl_id);
674 #ifdef TOOLS_HAS_GL_VBO
675 ::glBindBuffer(GL_ARRAY_BUFFER,
m_gl_id);
◆ is_valid()
| bool tools::sg::GL_manager::gsto_t::is_valid |
( |
| ) |
const |
|
inline |
Definition at line 654 of file GL_manager.
656 return (::glIsTexture(
m_gl_id)==GL_TRUE?
true:
false);
658 #ifdef TOOLS_HAS_GL_VBO
659 return (::glIsBuffer(
m_gl_id)==GL_TRUE?
true:
false);
662 #ifdef TOOLS_HAS_GL_LIST
663 return (::glIsList(
m_gl_id)==GL_TRUE?
true:
false);
◆ m_data
| float* tools::sg::GL_manager::gsto_t::m_data |
◆ m_gl_id
| unsigned int tools::sg::GL_manager::gsto_t::m_gl_id |
◆ m_kind
| kind tools::sg::GL_manager::gsto_t::m_kind |
◆ m_size
| size_t tools::sg::GL_manager::gsto_t::m_size |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/GL_manager