JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ShaderProgram::Context Struct Reference

Lifetime object when the ShaderProgram is in use. More...

#include <jngl/ShaderProgram.hpp>

Public Member Functions

 Context (const Impl &)
 
 Context (const Context &)=delete
 
Contextoperator= (const Context &)=delete
 
 Context (Context &&) noexcept
 
Contextoperator= (Context &&)=delete
 

Static Public Member Functions

static void setUniform (int location, int v0)
 Sets the Context's associated ShaderProgram's uniform. More...
 
static void setUniform (int location, float v0, float v1)
 
static void setUniform (int location, float v0, float v1, float v2, float v3)
 

Detailed Description

Lifetime object when the ShaderProgram is in use.

Definition at line 28 of file ShaderProgram.hpp.

Member Function Documentation

◆ setUniform()

static void setUniform ( int  location,
int  v0 
)
static

Sets the Context's associated ShaderProgram's uniform.

Parameters
locationsee ShaderProgram::getUniformLocation(const std::string&)

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