PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::GLMaterial Class Reference

#include <GLTextureMesh.h>

Inheritance diagram for dyno::GLMaterial:
Collaboration diagram for dyno::GLMaterial:

Public Member Functions

 GLMaterial ()
 
 ~GLMaterial () override
 
void create () override
 
void release () override
 
void updateGL ()
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Public Attributes

Vec3f baseColor = { 0.8f, 0.8f, 0.8f }
 
float metallic = 0.0f
 
float roughness = 1.0f
 
float alpha = 1.0f
 
float bumpScale = 1.f
 
XTexture2D< dyno::Vec4ftexColor
 
XTexture2D< dyno::Vec4ftexBump
 
bool mInitialized = false
 
- Public Attributes inherited from dyno::GraphicsObject
unsigned int id = 0xFFFFFFFF
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Protected Member Functions inherited from dyno::GraphicsObject
virtual bool isValid () const
 
 GraphicsObject ()=default
 
virtual ~GraphicsObject ()=default
 
 GraphicsObject (const GraphicsObject &)=delete
 
GraphicsObjectoperator= (const GraphicsObject &)=delete
 

Detailed Description

Definition at line 31 of file GLTextureMesh.h.

Constructor & Destructor Documentation

◆ GLMaterial()

dyno::GLMaterial::GLMaterial ( )

GLMaterial

Definition at line 10 of file GLTextureMesh.cpp.

◆ ~GLMaterial()

dyno::GLMaterial::~GLMaterial ( )
override

Definition at line 14 of file GLTextureMesh.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ create()

void dyno::GLMaterial::create ( )
overridevirtual

Implements dyno::GraphicsObject.

Definition at line 19 of file GLTextureMesh.cpp.

◆ release()

void dyno::GLMaterial::release ( )
overridevirtual

Implements dyno::GraphicsObject.

Definition at line 23 of file GLTextureMesh.cpp.

Here is the caller graph for this function:

◆ updateGL()

void dyno::GLMaterial::updateGL ( )

Definition at line 29 of file GLTextureMesh.cpp.

Member Data Documentation

◆ alpha

float dyno::GLMaterial::alpha = 1.0f

Definition at line 47 of file GLTextureMesh.h.

◆ baseColor

Vec3f dyno::GLMaterial::baseColor = { 0.8f, 0.8f, 0.8f }

Definition at line 43 of file GLTextureMesh.h.

◆ bumpScale

float dyno::GLMaterial::bumpScale = 1.f

Definition at line 49 of file GLTextureMesh.h.

◆ metallic

float dyno::GLMaterial::metallic = 0.0f

Definition at line 45 of file GLTextureMesh.h.

◆ mInitialized

bool dyno::GLMaterial::mInitialized = false

Definition at line 55 of file GLTextureMesh.h.

◆ roughness

float dyno::GLMaterial::roughness = 1.0f

Definition at line 46 of file GLTextureMesh.h.

◆ texBump

XTexture2D<dyno::Vec4f> dyno::GLMaterial::texBump

Definition at line 53 of file GLTextureMesh.h.

◆ texColor

XTexture2D<dyno::Vec4f> dyno::GLMaterial::texColor

Definition at line 52 of file GLTextureMesh.h.


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