esp::gfx::PrimitiveIDDrawable class

Base classes

class Drawable
Drawable for use with DrawableGroup.

Public static variables

static char SHADER_KEY constexpr

Constructors, destructors, conversion operators

PrimitiveIDDrawable(scene::SceneNode& node, Magnum::GL::Mesh& mesh, ShaderManager& shaderManager, DrawableGroup* group = nullptr) explicit

Protected functions

void draw(const Magnum::Matrix4& transformationMatrix, Magnum::SceneGraph::Camera3D& camera) override

Protected variables

PrimitiveIDShader* shader_

Function documentation

esp::gfx::PrimitiveIDDrawable::PrimitiveIDDrawable(scene::SceneNode& node, Magnum::GL::Mesh& mesh, ShaderManager& shaderManager, DrawableGroup* group = nullptr) explicit

Create a PrimitiveIDDrawable for the given object using shader and mesh. Adds drawable to given group and uses provided texture, objectId, and color for textured, object id buffer and color shader output respectively