C# 클래스 Bind.Structures.Constant

Represents an opengl constant in C# format. Both the constant name and value can be retrieved or set. The value can be either a number, another constant or an alias to a constant
파일 보기 프로젝트 열기: tpb3d/TPB3D 1 사용 예제들

공개 메소드들

메소드 설명
Constant ( ) : System

Creates an empty Constant.

Constant ( string name, string value ) : System

Creates a Constant with the given name and value.

ToString ( ) : string

Returns a string that represents the full constant declaration without decorations (eg GL_XXX_YYY = (int)0xDEADBEEF or GL_XXX_YYY = GL_ZZZ.FOOBAR).

Translate ( string s, bool isValue ) : string
TranslateConstantWithReference ( Constant c, EnumCollection enums, EnumCollection auxEnums ) : bool

Replces the Value of the given constant with the value referenced by the [c.Reference, c.Value] pair.

메소드 상세

Constant() 공개 메소드

Creates an empty Constant.
public Constant ( ) : System
리턴 System

Constant() 공개 메소드

Creates a Constant with the given name and value.
public Constant ( string name, string value ) : System
name string The Name of the Constant.
value string The Type of the Constant.
리턴 System

ToString() 공개 메소드

Returns a string that represents the full constant declaration without decorations (eg GL_XXX_YYY = (int)0xDEADBEEF or GL_XXX_YYY = GL_ZZZ.FOOBAR).
public ToString ( ) : string
리턴 string

Translate() 공개 정적인 메소드

public static Translate ( string s, bool isValue ) : string
s string
isValue bool
리턴 string

TranslateConstantWithReference() 공개 정적인 메소드

Replces the Value of the given constant with the value referenced by the [c.Reference, c.Value] pair.
public static TranslateConstantWithReference ( Constant c, EnumCollection enums, EnumCollection auxEnums ) : bool
c Constant The Constant to translate
enums EnumCollection The list of enums to check.
auxEnums EnumCollection The list of auxilliary enums to check.
리턴 bool