Table of Contents

Class Constants

Namespace
SearchAThing.OpenGL.Core
Assembly
netcore-opengl-core.dll
public static class Constants
Inheritance
Constants
Inherited Members

Fields

ATTNAME_vFlags

Name of vertex shader attribute ( flags ).

public const string ATTNAME_vFlags = "vFlags"

Field Value

string

ATTNAME_vMatColor

Name of vertex shader attribute ( rgba vertex color ).

public const string ATTNAME_vMatColor = "vMatColor"

Field Value

string

ATTNAME_vMatProp

Name of vertex shader attribute ( Describe the strength (0..1) of the ambient, diffuse, specular light effects. ).

public const string ATTNAME_vMatProp = "vMatProp"

Field Value

string

ATTNAME_vNormal

Name of vertex shader attribute ( vertex normal [local] ).

public const string ATTNAME_vNormal = "vNormal"

Field Value

string

ATTNAME_vPos

Name of vertex shader attribute ( vertex position [local] ).

public const string ATTNAME_vPos = "vPos"

Field Value

string

ATTNAME_vTexCoord

Name of vertex shader attribute ( texture coordinate mapping in the range [0,0]...[1,1] ).

public const string ATTNAME_vTexCoord = "vTexCoord"

Field Value

string

BUILTIN_FONTFILE

public const string BUILTIN_FONTFILE = "DejaVuSansMono.ttf"

Field Value

string

BUILTIN_FONTNAME

public const string BUILTIN_FONTNAME = "DejaVu Sans Mono"

Field Value

string

DEFAULT_CAMERA_POS

(Default) gl control camera pos [world].

public static readonly Vector3 DEFAULT_CAMERA_POS

Field Value

Vector3

DEFAULT_CAMERA_TARGET

(Default) gl control camera target [world].

public static readonly Vector3 DEFAULT_CAMERA_TARGET

Field Value

Vector3

DEFAULT_CAMERA_UP

(Default) gl control camera up [world].

public static readonly Vector3 DEFAULT_CAMERA_UP

Field Value

Vector3

DEFAULT_CameraObjectColor

public static readonly Color DEFAULT_CameraObjectColor

Field Value

Color

DEFAULT_ClearColor

(Default) Clear(bool, Color?) background color.

public static readonly Color DEFAULT_ClearColor

Field Value

Color

DEFAULT_CursorMode

(Default) gl control cursor mode.

public const CursorMode DEFAULT_CursorMode = View

Field Value

CursorMode

DEFAULT_Far

(Default) Absolute position along [eye] z axis of the far clipping plane.

public const float DEFAULT_Far = 50000

Field Value

float

DEFAULT_FigureOrder

(Default) Order of a figure.

public const int DEFAULT_FigureOrder = 0

Field Value

int

DEFAULT_FigureVisible

(Default) Visible of a figure.

public const bool DEFAULT_FigureVisible = true

Field Value

bool

DEFAULT_FovDeg

(Default) perspective mode field of view (deg).

public const float DEFAULT_FovDeg = 28

Field Value

float

DEFAULT_INVALIDATE

(Default) gl control invalidate behavior for api.

public const bool DEFAULT_INVALIDATE = true

Field Value

bool

DEFAULT_LIGHT_COLOR

(Default) gl point light color.

public static readonly Color DEFAULT_LIGHT_COLOR

Field Value

Color

DEFAULT_LIGHT_CONSTANT

(Default) gl point light constant attenuation factor.

public const float DEFAULT_LIGHT_CONSTANT = 1

Field Value

float

DEFAULT_LIGHT_LINEAR

(Default) gl point light linear attenuation factor.

public const float DEFAULT_LIGHT_LINEAR = 0

Field Value

float

DEFAULT_LIGHT_QUADRATIC

(Default) gl point light quadratic attenuation factor.

public const float DEFAULT_LIGHT_QUADRATIC = 0

Field Value

float

DEFAULT_LIGHT_SHOW_POINT

(Default) gl point light show point flag.

public const bool DEFAULT_LIGHT_SHOW_POINT = false

Field Value

bool

DEFAULT_LIGHT_SHOW_POINT_SIZE

(Default) gl point light show point size (pixel).

public const float DEFAULT_LIGHT_SHOW_POINT_SIZE = 10

Field Value

float

DEFAULT_MaterialAmbientStrength

( Default ) material ambient strength ( 0.8 ).

public const float DEFAULT_MaterialAmbientStrength = 0.8

Field Value

float

DEFAULT_MaterialColor

( Default ) color.

public static readonly Color DEFAULT_MaterialColor

Field Value

Color

DEFAULT_MaterialDiffuseStrength

( Default ) material diffuse strength ( 0.6 ).

public const float DEFAULT_MaterialDiffuseStrength = 0.6

Field Value

float

DEFAULT_MaterialProperties

( Default ) material properties ( ambient:0.8, diffuse:0.6, strength:0.6 ).

public static readonly MaterialProperties DEFAULT_MaterialProperties

Field Value

MaterialProperties

DEFAULT_MaterialSpecularStrength

( Default ) material specular strength ( 0.6 ).

public const float DEFAULT_MaterialSpecularStrength = 0.6

Field Value

float

DEFAULT_NORMAL_FACTOR

(Default) gl shader UNINAME_uNormalFactor.

public const float DEFAULT_NORMAL_FACTOR = 0.025

Field Value

float

DEFAULT_Near

(Default) Absolute position along [eye] z axis of the near clipping plane.

public const float DEFAULT_Near = 0.1

Field Value

float

DEFAULT_Normal

(Default) vertex normal (0,0,0).

public static readonly Vector3 DEFAULT_Normal

Field Value

Vector3

DEFAULT_ObjectMatrix

(Default) ObjectMatrix of a figure.

public static readonly Matrix4x4 DEFAULT_ObjectMatrix

Field Value

Matrix4x4

DEFAULT_OrthoZoom

(Default) orthogonal mode scale factor.

public const float DEFAULT_OrthoZoom = 1

Field Value

float

DEFAULT_PIXEL_FORMAT

Specify default image buffer format by GLTexture2D.

public const PixelFormat DEFAULT_PIXEL_FORMAT = Rgba

Field Value

PixelFormat

DEFAULT_Perspective

(Default) gl control perspective mode.

public const bool DEFAULT_Perspective = true

Field Value

bool

DEFAULT_PointSize

(Default) PointSize of a point figure.

public const float DEFAULT_PointSize = 10

Field Value

float

DEFAULT_SHADE_WITH_EDGE

(Default) gl control shade with edge flag.

public const bool DEFAULT_SHADE_WITH_EDGE = false

Field Value

bool

DEFAULT_SHOW_NORMALS

(Default) gl control show normals flags.

public const bool DEFAULT_SHOW_NORMALS = false

Field Value

bool

DEFAULT_ScreenCoord

(Default) ScreenCoordMode of a figure.

public const bool DEFAULT_ScreenCoord = false

Field Value

bool

DEFAULT_StdViewAngleDeg

(Default) gl control angle view addition in standard cube views (deg).

public const float DEFAULT_StdViewAngleDeg = 45

Field Value

float

DEFAULT_TEXTURE_INTERNAL_FORMAT

Specify gpy internal format of texture used by GLTexture2D.

public const InternalFormat DEFAULT_TEXTURE_INTERNAL_FORMAT = Rgba8

Field Value

InternalFormat

DEFAULT_TRACE_LOCATION_WARNINGS

(Default) trace shader location warning.

public const bool DEFAULT_TRACE_LOCATION_WARNINGS = false

Field Value

bool

DEFAULT_TexCoord

(Default) vertex texture mapping coordinate (0,0).

public static readonly Vector2 DEFAULT_TexCoord

Field Value

Vector2

DEFAULT_TextColor

(Default) Color.

public static readonly Color DEFAULT_TextColor

Field Value

Color

DEFAULT_UseShadows

(Default) gl control use shadow flag.

public const bool DEFAULT_UseShadows = true

Field Value

bool

DEFAULT_UseTexture

(Default) gl control use texture flag.

public const bool DEFAULT_UseTexture = true

Field Value

bool

DEFAULT_VERTEX_VISIBILITY

(Default) gl control vertex visibility flag.

public const bool DEFAULT_VERTEX_VISIBILITY = false

Field Value

bool

DEFAULT_VERTEX_VISIBILITY_POINT_SIZE

(Default) gl geometry shader vertex visibility point size.

public const float DEFAULT_VERTEX_VISIBILITY_POINT_SIZE = 5

Field Value

float

DEFAULT_VertexPosition

(Default) vertex position (0,0,0).

public static readonly Vector3 DEFAULT_VertexPosition

Field Value

Vector3

DEFAULT_Wireframe

(Default) gl control wireframe enable/

public const bool DEFAULT_Wireframe = false

Field Value

bool

DefaultHitTestTolerance

Default hit test tolerance.

public const float DefaultHitTestTolerance = 0.01

Field Value

float

DefaultTolerance

Default tolerance for empty model.
TolHint

public const float DefaultTolerance = 1E-05

Field Value

float

FONT_BITMAP_PIXEL

Height (pixel) of font samples rendering.
Used by the GetFontChars(string, SKFont)

public const int FONT_BITMAP_PIXEL = 300

Field Value

int

MAIN_TEXTURE_UNIT

Gl texture unit used for main figure texture usages.

public const TextureUnit MAIN_TEXTURE_UNIT = Texture2

Field Value

TextureUnit

MESA_WIN_LIBRARY_ENV

Environment variable to set in order to use mesa library in Windows.
GLContext

public const string MESA_WIN_LIBRARY_ENV = "OPENGL_LIBRARY_PATH"

Field Value

string

NETCORE_OPENGL_CORE_ASSEMBLY_NAME

SearchAThing.OpenGL.Core assembly name (regex).

public const string NETCORE_OPENGL_CORE_ASSEMBLY_NAME = "netcore-opengl-core"

Field Value

string

NormalizedTolerance

Tolerance to be used in comparision of normalized vectors.

public const float NormalizedTolerance = 1E-06

Field Value

float

PAN_LITTLE_FACTOR

(Default) gl control pan factor respect the screen size.

public const float PAN_LITTLE_FACTOR = 0.1

Field Value

float

RESOURCE_NAMESPACE_BASE

SearchAThing.OpenGL.Core (regex).

public static readonly string RESOURCE_NAMESPACE_BASE

Field Value

string

ROTATE_LITTLE_DEG

(Default) gl control rotate model step (deg).

public const float ROTATE_LITTLE_DEG = 5

Field Value

float

SCREEN_ADJUST_H

(Default) Used in BuildScreenProjectMatrix().

public const float SCREEN_ADJUST_H = 0

Field Value

float

SCREEN_ADJUST_TX

(Default) Used in BuildScreenProjectMatrix().

public const float SCREEN_ADJUST_TX = 0

Field Value

float

SCREEN_ADJUST_TY

(Default) Used in BuildScreenProjectMatrix().

public const float SCREEN_ADJUST_TY = 0

Field Value

float

SCREEN_ADJUST_W

(Default) Used in BuildScreenProjectMatrix().

public const float SCREEN_ADJUST_W = 0

Field Value

float

SHADER_RESOURCE_DEPTH_FRAG

Shader "3.depth.fs" resource name (regex).

public static readonly string SHADER_RESOURCE_DEPTH_FRAG

Field Value

string

SHADER_RESOURCE_DEPTH_GEOM

Shader "2.depth.gs" resource name (regex).

public static readonly string SHADER_RESOURCE_DEPTH_GEOM

Field Value

string

SHADER_RESOURCE_DEPTH_VERT

Shader "1.depth.vs" resource name (regex).

public static readonly string SHADER_RESOURCE_DEPTH_VERT

Field Value

string

SHADER_RESOURCE_MAIN_FRAG

Shader "6.main.fs" resource name (regex).

public static readonly string SHADER_RESOURCE_MAIN_FRAG

Field Value

string

SHADER_RESOURCE_MAIN_GEOM_NORMAL

Shader "5.normal.gs" resource name (regex).

public static readonly string SHADER_RESOURCE_MAIN_GEOM_NORMAL

Field Value

string

SHADER_RESOURCE_MAIN_GEOM_SHADE_WITH_EDGE

Shader "5.shadewithedge.gs" resource name (regex).

public static readonly string SHADER_RESOURCE_MAIN_GEOM_SHADE_WITH_EDGE

Field Value

string

SHADER_RESOURCE_MAIN_GEOM_VERTEX_VISIBILITY_LINE

Shader "5.vertexvisibilityline.gs" resource name (regex).

public static readonly string SHADER_RESOURCE_MAIN_GEOM_VERTEX_VISIBILITY_LINE

Field Value

string

SHADER_RESOURCE_MAIN_GEOM_VERTEX_VISIBILITY_TRI

Shader "5.vertexvisibilitytri.gs" resource name (regex).

public static readonly string SHADER_RESOURCE_MAIN_GEOM_VERTEX_VISIBILITY_TRI

Field Value

string

SHADER_RESOURCE_MAIN_VERT

Shader "4.main.vs" resource name (regex).

public static readonly string SHADER_RESOURCE_MAIN_VERT

Field Value

string

SHADOW_HEIGHT

Height (pixels) of the cube depth shadow.

public static uint SHADOW_HEIGHT

Field Value

uint

SHADOW_TEXTURE_UNIT

Gl texture unit used for shadow map generation.

public const TextureUnit SHADOW_TEXTURE_UNIT = Texture1

Field Value

TextureUnit

SHADOW_WIDTH

Width (pixels) of the cube depth shadow.

public static uint SHADOW_WIDTH

Field Value

uint

SIMPLE_CMD_COORD_SEP

public const char SIMPLE_CMD_COORD_SEP = ','

Field Value

char

SIMPLE_CMD_LINE

public const string SIMPLE_CMD_LINE = "l"

Field Value

string

SIMPLE_CMD_POINT

public const string SIMPLE_CMD_POINT = "p"

Field Value

string

SIMPLE_CMD_POINT_SEP

public const char SIMPLE_CMD_POINT_SEP = ';'

Field Value

char

SIMPLE_CMD_TRIANGLE

public const string SIMPLE_CMD_TRIANGLE = "t"

Field Value

string

SSBO_Blockname_PointLightsBlock

Name of the uniform shader variable for the name of points light block buffer.

public const string SSBO_Blockname_PointLightsBlock = "PointLightsBlock"

Field Value

string

SSBO_Blockname_PointLightsMatrixesBlock

Name of the uniform shader variable for the name of points light matrixes block buffer.

public const string SSBO_Blockname_PointLightsMatrixesBlock = "PointLightsMatrixesBlock"

Field Value

string

TILT_LITTLE_DEG

(Default) gl control camera tilt step (deg).

public const float TILT_LITTLE_DEG = 2

Field Value

float

UNINAME_uBBoxMax

Name of the uniform shader variable for the model bbox max vertex [local]. Used by normal geometry shader to compute normal scale length.

public const string UNINAME_uBBoxMax = "uBBoxMax"

Field Value

string

UNINAME_uBBoxMin

Name of the uniform shader variable for the model bbox min vertex [local].
Used by normal geometry shader to compute normal scaled length.

public const string UNINAME_uBBoxMin = "uBBoxMin"

Field Value

string

UNINAME_uCameraPos

Name of the uniform shader variable for the camera position [world].

public const string UNINAME_uCameraPos = "uCameraPos"

Field Value

string

UNINAME_uDepthMap

Name of the uniform shader variable to specify depth texture cube array reference.

public const string UNINAME_uDepthMap = "uDepthMap"

Field Value

string

UNINAME_uEvalLight

Name of the uniform shader variable that enables evaluation of the light.

public const string UNINAME_uEvalLight = "uEvalLight"

Field Value

string

UNINAME_uFarPlaneLight

Name of the uniform shader variable to set far plane in light depth map calc.

public const string UNINAME_uFarPlaneLight = "uFarPlaneLight"

Field Value

string

UNINAME_uFigureAlpha

Name of the uniform shader variable for the figure alpha. Alpha.

public const string UNINAME_uFigureAlpha = "uFigureAlpha"

Field Value

string

UNINAME_uFigureHighlight

Name of the uniform shader variable for the figure highlight flag.

public const string UNINAME_uFigureHighlight = "uFigureHighlight"

Field Value

string

UNINAME_uFigureScreenCoord

Name of the uniform shader variable that enable screen coord mode vertex evaluation [object].

public const string UNINAME_uFigureScreenCoord = "uFigureScreenCoord"

Field Value

string

UNINAME_uFigureSelected

Name of the uniform shader variable for the figure selected flag.

public const string UNINAME_uFigureSelected = "uFigureSelected"

Field Value

string

UNINAME_uIsText

Name of the uniform shader variable to enable evluation of color from UNINAME_uTextColor variable.

public const string UNINAME_uIsText = "uIsText"

Field Value

string

UNINAME_uLightIdx

Name of the uniform shader variable that describe the index of the light to evaluate. ( used in depth shader ).

public const string UNINAME_uLightIdx = "uLightIdx"

Field Value

string

UNINAME_uMainTexture

Name of the uniform shader variable to specify main texture sampler reference.

public const string UNINAME_uMainTexture = "uMainTexture"

Field Value

string

UNINAME_uModel

Name of the uniform shader variable for the model matrix [local].

public const string UNINAME_uModel = "uModel"

Field Value

string

UNINAME_uNormalFactor

Name of the uniform shader variable for the normal length scaling factor respect model bbox size [local]. Used by normal geometry shader to compute normal scale length.

public const string UNINAME_uNormalFactor = "uNormalFactor"

Field Value

string

UNINAME_uObject

Name of the uniform shader variable for the object matrix [object].

public const string UNINAME_uObject = "uObject"

Field Value

string

UNINAME_uOverrideAmbient

Name of the uniform shader variable to override vertex material ambient strength (0..1).

public const string UNINAME_uOverrideAmbient = "uOverrideAmbient"

Field Value

string

UNINAME_uOverrideAmbientEnabled

Name of the uniform shader variable to enable/disable vertex material ambient override strength.

public const string UNINAME_uOverrideAmbientEnabled = "uOverrideAmbientEnabled"

Field Value

string

UNINAME_uOverrideDiffuse

Name of the uniform shader variable to override vertex material diffuse strength (0..1).

public const string UNINAME_uOverrideDiffuse = "uOverrideDiffuse"

Field Value

string

UNINAME_uOverrideDiffuseEnabled

Name of the uniform shader variable to enable/disable vertex material diffuse override strength.

public const string UNINAME_uOverrideDiffuseEnabled = "uOverrideDiffuseEnabled"

Field Value

string

UNINAME_uOverrideSpecular

Name of the uniform shader variable to override vertex material specular strength (0..1).

public const string UNINAME_uOverrideSpecular = "uOverrideSpecular"

Field Value

string

UNINAME_uOverrideSpecularEnabled

Name of the uniform shader variable to enable/disable vertex material specular override strength.

public const string UNINAME_uOverrideSpecularEnabled = "uOverrideSpecularEnabled"

Field Value

string

UNINAME_uProjection

Name of the uniform shader variable for the projection matrix [eye].

public const string UNINAME_uProjection = "uProjection"

Field Value

string

UNINAME_uScreenModel

Name of the uniform shader variable for the screen mode model matrix [local].

public const string UNINAME_uScreenModel = "uScreenModel"

Field Value

string

UNINAME_uScreenProjection

Name of the uniform shader variable for the screen mode projection matrix [eye].

public const string UNINAME_uScreenProjection = "uScreenProjection"

Field Value

string

UNINAME_uShadows

Name of the uniform shader variable to enable/disable shadow.

public const string UNINAME_uShadows = "uShadows"

Field Value

string

UNINAME_uTextColor

Name of the uniform shader variable that specify color for text figure types.

public const string UNINAME_uTextColor = "uTextColor"

Field Value

string

UNINAME_uUseTexture

Name of the uniform shader variable to consider vertex color from texture.

public const string UNINAME_uUseTexture = "uUseTexture"

Field Value

string

UNINAME_uView

Name of the uniform shader variable for the view matrix [world].

public const string UNINAME_uView = "uView"

Field Value

string

WCS

CS world with origin=(0,0,0) basex=(1,0,0) basey=(0,1,0) basez=(0,0,1)

public static readonly Matrix4x4 WCS

Field Value

Matrix4x4

XZCS

CS representing XZ plane origin=(0,0,0) basex=(1,0,0) basey=(0,0,1) basez=(0,-1,0)

public static readonly Matrix4x4 XZCS

Field Value

Matrix4x4

YAxisOrientation

Y axis orientation [screen].

public const YAxisOrientationEnum YAxisOrientation = YPositiveUp

Field Value

YAxisOrientationEnum

Remarks

NOTE: Actually tested only for YPositiveUp. It's a constant hard coded.

YZCS

CS representing YZ plane origin=(0,0,0) basex=(0,1,0) basey=(0,0,1) basez=(1,0,0)

public static readonly Matrix4x4 YZCS

Field Value

Matrix4x4

ZOOM_LITTLE_FACTOR

(Default) gl control step zoom scale factor.

public const float ZOOM_LITTLE_FACTOR = 0.1

Field Value

float

aaaSmall

public const float aaaSmall = 0.015625

Field Value

float

Properties

ViewDefaultPathfilename

(Default) pathfilename of the view.json used by SaveView(string?).

public static string ViewDefaultPathfilename { get; }

Property Value

string