StgSharp
Add a pool to timeline controller, and return the instance of the pool.
Get the status of a certain key on the keyboard.
Function handler to load an opengl function by serching its name.
the name of the Opengl function
An intptr value representing the pointer to the function
Constructor of a Form, creats an instance of a form and
initilize all the customizing operations.
Resize the current form
New width of the window
New height of the window
Resize the current form
A (width,height) representing the new size of current form
Set the size limit of current form
Minimum width of current form
Minimum height of current form
Maximum width of curent form
Maximum height of current form
Set the size limit of current form
Minimun size of current form. In form of a of (width,height)
Maximum size of current form. In form of a of (width,height)
Call apiClearColor in OpenGL
specifies the red, green, blue, and alpha values used by apiClear to clear the color buffers.
Values specified by apiClearColor are clamped to the range [0,1]
Specify the red values used when the color buffers are cleared.
Specify the red values used when the color buffers are cleared.
Specify the red values used when the color buffers are cleared.
Specify the red values used when the color buffers are cleared.
Bind the indexed buffer object to certain type of buffer
Clear buffers to preset values
Conpile the provided shader code in string form.
A string represent the shader's code
An enum represent the type of the shader to
conpile, including vertex shader and fragment shader.
An uint value as the only mark of conpiled shader
Creates a form and its associated
Required width
Required width
Tittle of the window
The instance of created form
sets the framebuffer resize callback of the specified ,
which is called when the framebuffer of the specified is resized.
The only signiture stands for the to be controlled
Method hadler
Set how a shader parameter read data from a VBO.
Serial number of the parameter
Amount of data each elements contains
Type of data read by shader
Pixels stride of each sets of data
Set data value to a float ,
all types of parameters are float.
The target
The value to be set
Set data value to a int ,
all types of parameters are int.
The target
The value to be set
Set data value to a float ,
all types of parameters are float.
The target
The first value to be set
The second value to be set
Set data value to a float ,
all types of parameters are float.
The target
The first value to be set
The second value to be set
The third value to be set
Set data value to a float ,
all types of parameters are float.
The target
The first value to be set
The second value to be set
The third value to be set
The forth value to be set
Set data value to a float ,
all types of parameters are float.
The target
A packing four parameters of the uniform
Set data value to a float ,
all types of parameters are .
The target
A value of the uniform
Create an instance of program
New instance of instance.
A value represent this shader.
Inti a shader with no program attached.
Compile the vertex shader to be attached to this shader.
GLSL code of vertex shader.
Compile the fragment shader to be attached to this shader.
GLSL code of fragment shader.
Link the shader to current context.
Get a uniform form current shader,
the value type of the uniform should be provided.
Let the current context use this shader.
Load all aupportable OpenGL APIs and bind them to given context.
The used as current OpenGL context
A delegate that can get o
Get the function pointer of given OpenGL api name
Name of the OpenGL api
The funtion pointer of the api in form of
Tick counter count the frames passed since the program start.
A sensor used for cheking out if a bullet hit a player or something else
A 2D vector presenting the position of an enemy entity, position can also be visited by X, Y
X position of an enenmy entity
Y position of an enemy entity
The origin of this coordinate.
The horizontial axis of the coordinate.
Point to the right direction.
The vertical axis of the coordinate.
Point to the top direction.
当几何体调用了过多的CalcVec方法时,产生UnusedVertexException异常
Caculate the movement of a point.
The game tick represent time passed by
A 3d vector representing movement
Move the third vertix. this is a useless method for Parallelograms.
Current time tick
Geometry overdefined
Move the third vertix. This method is useless for Parallelograms.
Current time tick
Geometry overdefined
平面几何体。包含三角形,对称四边形,自由多边形等。最多可由16个点参数定义。
Update the coordinate of the point. If this is a moving point,
(Points on sides or surface if other geometry items)
please do not define any motion here, codes will be ignored by program
Time passes since the program begin, counted by frames
计算中心点相对于参考原点的位移
当前游戏刻
A square
Add an item to the tail of linked list.
The item ready to add to the list
A two dimension vector defined by two elements.
Vec2Ds in StgSharp are defaultly usaed as colum vector.
Reurns the value of ArcSin(x)
The sine value of the angle
Get the value of E ^ x;
Returns the value of ln(x).
calculate the value of x^y
Returns the value of x^y
returns a random float number between 0 and 1.
Generates a random seed in int value.