arsa  2.7
Public Member Functions | Public Attributes | List of all members
irr::scene::quake3::IShader Struct Reference

A Parsed Shader Holding Variables ordered in Groups. More...

#include <IQ3Shader.h>

Public Member Functions

 IShader ()
 
virtual ~IShader ()
 
void operator= (const IShader &other)
 
bool operator== (const IShader &other) const
 
bool operator< (const IShader &other) const
 
u32 getGroupSize () const
 
const SVarGroupgetGroup (u32 stage) const
 

Public Attributes

s32 ID
 
SVarGroupListVarGroup
 
core::stringc name
 

Detailed Description

A Parsed Shader Holding Variables ordered in Groups.

Definition at line 636 of file IQ3Shader.h.

Constructor & Destructor Documentation

◆ IShader()

irr::scene::quake3::IShader::IShader ( )
inline

Definition at line 638 of file IQ3Shader.h.

639  : ID ( 0 ), VarGroup ( 0 ) {}
SVarGroupList * VarGroup
Definition: IQ3Shader.h:678

◆ ~IShader()

virtual irr::scene::quake3::IShader::~IShader ( )
inlinevirtual

Definition at line 640 of file IQ3Shader.h.

640 {}

Member Function Documentation

◆ getGroup()

const SVarGroup* irr::scene::quake3::IShader::getGroup ( u32  stage) const
inline

Definition at line 668 of file IQ3Shader.h.

669  {
670  if ( 0 == VarGroup || stage >= VarGroup->VariableGroup.size () )
671  return 0;
672 
673  return &VarGroup->VariableGroup [ stage ];
674  }
SVarGroupList * VarGroup
Definition: IQ3Shader.h:678
core::array< SVarGroup > VariableGroup
Definition: IQ3Shader.h:631

◆ getGroupSize()

u32 irr::scene::quake3::IShader::getGroupSize ( ) const
inline

Definition at line 661 of file IQ3Shader.h.

662  {
663  if ( 0 == VarGroup )
664  return 0;
665  return VarGroup->VariableGroup.size ();
666  }
SVarGroupList * VarGroup
Definition: IQ3Shader.h:678
core::array< SVarGroup > VariableGroup
Definition: IQ3Shader.h:631

◆ operator<()

bool irr::scene::quake3::IShader::operator< ( const IShader other) const
inline

Definition at line 655 of file IQ3Shader.h.

656  {
657  return strcmp ( name.c_str(), other.name.c_str () ) < 0;
658  //return name < other.name;
659  }
GLuint const GLchar * name

◆ operator=()

void irr::scene::quake3::IShader::operator= ( const IShader other)
inline

Definition at line 642 of file IQ3Shader.h.

643  {
644  ID = other.ID;
645  VarGroup = other.VarGroup;
646  name = other.name;
647  }
SVarGroupList * VarGroup
Definition: IQ3Shader.h:678
GLuint const GLchar * name

◆ operator==()

bool irr::scene::quake3::IShader::operator== ( const IShader other) const
inline

Definition at line 649 of file IQ3Shader.h.

650  {
651  return 0 == strcmp ( name.c_str(), other.name.c_str () );
652  //return name == other.name;
653  }
GLuint const GLchar * name

Member Data Documentation

◆ ID

s32 irr::scene::quake3::IShader::ID

Definition at line 677 of file IQ3Shader.h.

◆ name

core::stringc irr::scene::quake3::IShader::name

Definition at line 682 of file IQ3Shader.h.

◆ VarGroup

SVarGroupList* irr::scene::quake3::IShader::VarGroup

Definition at line 678 of file IQ3Shader.h.


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