Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::UniformTable::Arg Class Reference

This contains the value of a uniform or macro argument passed to shader and its type Macro variables can only be a subset of the possible values. More...

Public Member Functions

 Arg ()
 
 Arg (GLenum t)
 
 Arg (GLenum t, bool o)
 
void set (bool val, bool optional)
 
void set (int32 val, bool optional)
 
void set (uint32 val, bool optional)
 
void set (double val, bool optional)
 
void set (float val, bool optional)
 
void set (const Vector2 &vec, bool optional)
 
void set (const Vector3 &vec, bool optional)
 
void set (const Vector4 &vec, bool optional)
 
void set (const Color1 &col, bool optional)
 
void set (const Color3 &col, bool optional)
 
void set (const Color4 &col, bool optional)
 
void set (const Matrix2 &mat, bool optional)
 
void set (const Matrix3 &mat, bool optional)
 
void set (const Matrix2x3 &mat, bool optional)
 
void set (const Matrix4 &mat, bool optional)
 
void set (const CoordinateFrame &cframe, bool optional)
 
void set (const Vector2int32 &vec, bool optional)
 
void set (const Vector2uint32 &vec, bool optional)
 
void set (const Vector3int32 &vec, bool optional)
 
void set (const Vector2int16 &vec, bool optional)
 
void set (const Vector3int16 &vec, bool optional)
 
void set (const Vector4int16 &vec, bool optional)
 
void set (const Vector4uint16 &vec, bool optional)
 
String toString () const
 

Public Attributes

shared_ptr< BufferTexturebufferTexture
 
shared_ptr< BindlessTextureHandlehandle
 
int index
 If this arg is an element of a glsl array, this is its index in the array. More...
 
bool optional
 
shared_ptr< GLSamplerObjectsampler
 Empty unless this argument is an OpenGL Sampler. More...
 
shared_ptr< Texturetexture
 Empty unless this argument is an OpenGL Sampler or Image (that is not a buffer) More...
 
GLenum type
 
SmallArray< Scalar, 6 > value
 

Detailed Description

This contains the value of a uniform or macro argument passed to shader and its type Macro variables can only be a subset of the possible values.

Constructor & Destructor Documentation

◆ Arg() [1/3]

G3D::UniformTable::Arg::Arg ( )
inline

◆ Arg() [2/3]

G3D::UniformTable::Arg::Arg ( GLenum  t)
inline

◆ Arg() [3/3]

G3D::UniformTable::Arg::Arg ( GLenum  t,
bool  o 
)
inline

Member Function Documentation

◆ set() [1/23]

void G3D::UniformTable::Arg::set ( bool  val,
bool  optional 
)

◆ set() [2/23]

void G3D::UniformTable::Arg::set ( int32  val,
bool  optional 
)

◆ set() [3/23]

void G3D::UniformTable::Arg::set ( uint32  val,
bool  optional 
)

◆ set() [4/23]

void G3D::UniformTable::Arg::set ( double  val,
bool  optional 
)

◆ set() [5/23]

void G3D::UniformTable::Arg::set ( float  val,
bool  optional 
)

◆ set() [6/23]

void G3D::UniformTable::Arg::set ( const Vector2 vec,
bool  optional 
)

◆ set() [7/23]

void G3D::UniformTable::Arg::set ( const Vector3 vec,
bool  optional 
)

◆ set() [8/23]

void G3D::UniformTable::Arg::set ( const Vector4 vec,
bool  optional 
)

◆ set() [9/23]

void G3D::UniformTable::Arg::set ( const Color1 col,
bool  optional 
)

◆ set() [10/23]

void G3D::UniformTable::Arg::set ( const Color3 col,
bool  optional 
)

◆ set() [11/23]

void G3D::UniformTable::Arg::set ( const Color4 col,
bool  optional 
)

◆ set() [12/23]

void G3D::UniformTable::Arg::set ( const Matrix2 mat,
bool  optional 
)

◆ set() [13/23]

void G3D::UniformTable::Arg::set ( const Matrix3 mat,
bool  optional 
)

◆ set() [14/23]

void G3D::UniformTable::Arg::set ( const Matrix2x3 mat,
bool  optional 
)

◆ set() [15/23]

void G3D::UniformTable::Arg::set ( const Matrix4 mat,
bool  optional 
)

◆ set() [16/23]

void G3D::UniformTable::Arg::set ( const CoordinateFrame cframe,
bool  optional 
)

◆ set() [17/23]

void G3D::UniformTable::Arg::set ( const Vector2int32 vec,
bool  optional 
)

◆ set() [18/23]

void G3D::UniformTable::Arg::set ( const Vector2uint32 vec,
bool  optional 
)

◆ set() [19/23]

void G3D::UniformTable::Arg::set ( const Vector3int32 vec,
bool  optional 
)

◆ set() [20/23]

void G3D::UniformTable::Arg::set ( const Vector2int16 vec,
bool  optional 
)

◆ set() [21/23]

void G3D::UniformTable::Arg::set ( const Vector3int16 vec,
bool  optional 
)

◆ set() [22/23]

void G3D::UniformTable::Arg::set ( const Vector4int16 vec,
bool  optional 
)

◆ set() [23/23]

void G3D::UniformTable::Arg::set ( const Vector4uint16 vec,
bool  optional 
)

◆ toString()

String G3D::UniformTable::Arg::toString ( ) const

Member Data Documentation

◆ bufferTexture

shared_ptr<BufferTexture> G3D::UniformTable::Arg::bufferTexture

◆ handle

shared_ptr<BindlessTextureHandle> G3D::UniformTable::Arg::handle

◆ index

int G3D::UniformTable::Arg::index

If this arg is an element of a glsl array, this is its index in the array.

If this arg is not an element of an array, its index is -1

◆ optional

bool G3D::UniformTable::Arg::optional

◆ sampler

shared_ptr<GLSamplerObject> G3D::UniformTable::Arg::sampler

Empty unless this argument is an OpenGL Sampler.

◆ texture

shared_ptr<Texture> G3D::UniformTable::Arg::texture

Empty unless this argument is an OpenGL Sampler or Image (that is not a buffer)

◆ type

GLenum G3D::UniformTable::Arg::type

◆ value

SmallArray<Scalar, 6> G3D::UniformTable::Arg::value

documentation generated on Wed Nov 24 2021 08:02:01 using doxygen 1.8.15