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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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