Skip to main content

OpenGLMeshComponent Struct Template

Stores OpenGL object IDs and draw information for a mesh. More...

Declaration

template <typename TOwnerHandle> struct helios::opengl::components::OpenGLMeshComponent<TOwnerHandle> { ... }

Public Member Attributes Index

template <typename TOwnerHandle>
unsigned intvao

Vertex Array Object handle. More...

template <typename TOwnerHandle>
unsigned intvbo

Vertex Buffer Object handle. More...

template <typename TOwnerHandle>
unsigned intebo

Element Buffer Object handle. More...

template <typename TOwnerHandle>
std::size_tindexCount

Number of indices used for indexed draw calls. More...

template <typename TOwnerHandle>
GLenumprimitiveType

Primitive topology used for rendering this mesh. More...

Description

Stores OpenGL object IDs and draw information for a mesh.

Template Parameters
TOwnerHandle

Owner handle type used by ECS composition.

Definition at line 22 of file OpenGLMeshComponent.ixx.

Public Member Attributes

ebo

template <typename TOwnerHandle>
unsigned int helios::opengl::components::OpenGLMeshComponent< TOwnerHandle >::ebo

Element Buffer Object handle.

Definition at line 37 of file OpenGLMeshComponent.ixx.

37 unsigned int ebo;

indexCount

template <typename TOwnerHandle>
std::size_t helios::opengl::components::OpenGLMeshComponent< TOwnerHandle >::indexCount

Number of indices used for indexed draw calls.

Definition at line 42 of file OpenGLMeshComponent.ixx.

42 std::size_t indexCount;

Referenced by helios::opengl::OpenGLBackend::renderBatch.

primitiveType

template <typename TOwnerHandle>
GLenum helios::opengl::components::OpenGLMeshComponent< TOwnerHandle >::primitiveType

Primitive topology used for rendering this mesh.

Definition at line 47 of file OpenGLMeshComponent.ixx.

Referenced by helios::opengl::OpenGLBackend::renderBatch.

vao

template <typename TOwnerHandle>
unsigned int helios::opengl::components::OpenGLMeshComponent< TOwnerHandle >::vao

Vertex Array Object handle.

Definition at line 27 of file OpenGLMeshComponent.ixx.

27 unsigned int vao;

vbo

template <typename TOwnerHandle>
unsigned int helios::opengl::components::OpenGLMeshComponent< TOwnerHandle >::vbo

Vertex Buffer Object handle.

Definition at line 32 of file OpenGLMeshComponent.ixx.

32 unsigned int vbo;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.