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)
sets the framebuffer resize callback of the specified ,
which is called when the framebuffer of the specified is resized.
The Form instance to be controlled
Method hadler
Call glClearColor in OpenGL
specifies the red, green, blue, and alpha values used by glClear to clear the color buffers.
Values specified by glClearColor 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.
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
Init an instance of OpenGL program,
This method should be called before other
graphic methods, after LoadGL method.
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
当几何体调用了过多的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.