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

#include <Shader.h>

Inheritance diagram for dyno::Program:
Collaboration diagram for dyno::Program:

Public Member Functions

void create ()
 
void release ()
 
void attachShader (const Shader &shader)
 
bool link ()
 
void use ()
 
void setFloat (const char *name, float v)
 
void setInt (const char *name, int v)
 
void setVec4 (const char *name, dyno::Vec4f v)
 
void setVec3 (const char *name, dyno::Vec3f v)
 
void setVec2 (const char *name, dyno::Vec2f v)
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Static Public Member Functions

static ProgramcreateProgram (const char *vs, const char *fs, const char *gs=0)
 
static ProgramcreateProgramSPIRV (const void *vs, size_t vs_len, const void *fs, size_t fs_len, const void *gs=0, size_t gs_len=0)
 
- 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.
 

Additional Inherited Members

- Public Attributes inherited from dyno::GraphicsObject
unsigned int id = 0xFFFFFFFF
 
- 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 42 of file Shader.h.

Member Function Documentation

◆ attachShader()

void dyno::Program::attachShader ( const Shader & shader)

Definition at line 100 of file Shader.cpp.

Here is the caller graph for this function:

◆ create()

void dyno::Program::create ( )
virtual

Implements dyno::GraphicsObject.

Definition at line 87 of file Shader.cpp.

Here is the caller graph for this function:

◆ createProgram()

Program * dyno::Program::createProgram ( const char * vs,
const char * fs,
const char * gs = 0 )
static

Definition at line 157 of file Shader.cpp.

Here is the call graph for this function:

◆ createProgramSPIRV()

Program * dyno::Program::createProgramSPIRV ( const void * vs,
size_t vs_len,
const void * fs,
size_t fs_len,
const void * gs = 0,
size_t gs_len = 0 )
static

Definition at line 202 of file Shader.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ link()

bool dyno::Program::link ( )

Definition at line 105 of file Shader.cpp.

Here is the caller graph for this function:

◆ release()

void dyno::Program::release ( )
virtual

Implements dyno::GraphicsObject.

Definition at line 92 of file Shader.cpp.

◆ setFloat()

void dyno::Program::setFloat ( const char * name,
float v )

Definition at line 126 of file Shader.cpp.

◆ setInt()

void dyno::Program::setInt ( const char * name,
int v )

Definition at line 132 of file Shader.cpp.

◆ setVec2()

void dyno::Program::setVec2 ( const char * name,
dyno::Vec2f v )

Definition at line 138 of file Shader.cpp.

◆ setVec3()

void dyno::Program::setVec3 ( const char * name,
dyno::Vec3f v )

Definition at line 144 of file Shader.cpp.

◆ setVec4()

void dyno::Program::setVec4 ( const char * name,
dyno::Vec4f v )

Definition at line 150 of file Shader.cpp.

◆ use()

void dyno::Program::use ( )

Definition at line 121 of file Shader.cpp.


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