StgSharp.Common
Determines whether the contains
the specified key.
The value to locate in the .
true if the contains an element
with the specified key; otherwise, false.
Determines whether the contains
the specified key.
The value to locate in the .
true if the contains an element
with the specified key; otherwise, false.
Part of a collection. This contains a direct reference to origin collection,
so all change to origin collection will be reflected in this object.
CustomizeInit an instance of OpenGL program, This method should be called before any
other StgSharp api.
Version of current StgSharp platform. Main version represent in hundred's digit, and sub
version represent in ten's digit.
Write a log message to log file, and mark the _level of this message.
A string contains information of how current evironment runs.
The severity of current message.
A class contains a sets of methods to serialize several types
An independent storage area, used as the only folder type in root folder. Contains several
files reference as virtual disc. Data is actually stored in s in certain RAID mode.
OpenGL numeric type. An IEEE-754 floating-point value, clamped to the range [0,1].
OpenGL numeric type. An IEEE-754 double precision floating-point value, clamped to the range
[0,1].
X position of an enenmy entity
Y position of an enemy entity
A sensor used for checking 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
当几何体调用了过多的CalcVec方法时,产生UnusedVertexException异常
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.
Plain geometry only contains straight sides.
Calculate movement to center
CurrentBlueprint time tick
A square
A two dimension vector defined by two elements. Vec2Ds in StgSharp are default used as colum
vector.
Orthogonalize two s, let their length be 1 and perpendicular to each
other.
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.
Interface of all kinds OpenGL Buffer objects
Get the only handle to one of the Object instance
Bind a Buffer instance to OpenGL
Index of handle of the object in this instance to be bind
Function handler to load an opengl function by searching its _name.
the _name of the Opengl function
An Intptr value representing the pointer to the function
Hash code of time pixels updated last time.
A collection of a sets of OpenGL textures. The collection can automatically select one of
the texture with minimum costs to upgrade pixels to Buffer. Usually is used for loading, but not for
target of .
A collection of handle to Element Buffer Object in OpenglFunc. Each
value indexed from instance of this class this is the only handle to one Element Buffer
Object.
Bind the frame Buffer object with _name frame Buffer to the frame Buffer target specified
by target. will be set as default target.
Index of object to be binded in handle set
Bind the frame Buffer object with _name frame Buffer to the frame Buffer target specified
by target. Target of this frame Buffer should be set manually.
The frame Buffer target of the binding operation.
Index of object to be binded in handle set
Load an to certain texture.
Set _data to current vertex Buffer object
Type of bufferData
Index to find certain VBO in this instance
Data to write in
How OpenGL use these _data, defined by
Set _data to current vertex Buffer object
Type of bufferData
Index to find certain VBO in this instance
Data to write in
How OpenGL use these _data, defined by
Set _data to current vertex Buffer object
Type of bufferData
Index to find certain VBO in this instance
A of _data to write in
How OpenGL use these _data, defined by
Set _data to current vertex Buffer object
Type of bufferData
Index to find certain VBO in this instance
A of _data to write in
How OpenGL use these _data, defined by
Set _data to current vertex Buffer object
Type of bufferData
Index to find certain VBO in this instance
A array of _data to write in
How OpenGL use these _data, defined by
Get the function pointer of given OpenGL api _name
ContextName of the OpenGL api
The funtion pointer of the api in stream of
Load all supported OpenGL APIs and bind them to given .
The handle to current OpenGL viewPortDisplay
Bind a frame Buffer to a frame Buffer target Same function as glBindFramebuffer.
The frame Buffer target of the binding operation.
The handle of the frame Buffer object to bind.
Delete a render Buffer object Very simlilar function as glDeleteRenderbuffers. The only
deifference is that this mehtod can only delete one renderbuffer at the same time.
Handle to Buffer to delete.
Create a set of .
Amount of EBO to be created.
Create a sets of
Amount of textures to be created.
Create a set of .
Amount of VAO to be created.
Create a set of .
Amount of Object to be created.
Initialize an opengl context and load all opengl functions.
Initialize an OpenGl viewPortDisplay if current form has not been binded to any
viewPortDisplay. and set the viewPortDisplay binded to current form as current OpenGL
viewPortDisplay.
Something goes wrong and StgSharp fails in creating a new OpenGL viewPortDisplay.
Create an instance of program
New instance of instance.
Attach one shader code to a shader program.
Shader program to attach
Index of shader code in current shader code set.
CustomizeInit a program with no shader attached.
Get a uniform form current shader, the value type of the uniform should be provided.
ContextName of the Uniform in shader code
Get a uniform form current shader, the value type of the uniform should be provided.
ContextName of the Uniform in shader code
Get a uniform form current shader, the value type of the uniform should be provided.
ContextName of the Uniform in shader code
Get a uniform form current shader, the value type of the uniform should be provided.
ContextName of the Uniform in shader code
Link the shader to current viewPortDisplay.
Let the current viewPortDisplay use this shader.
Set the size limit of current form
Minimum width of current form
Minimum height of current form
Maximum width of current form
Maximum height of current form
Get (TView is ) uniform from a shader.
This uniform will be used as projection matrix of this camera. Additionally, for multi-
shader rendering, each shader requires a uniform, so do not ignore return value of this
method.
Shader using this camera
ContextName of projection camera named in shader
(TView is ) representing projection
matrix in shader program.
Marking the start of current render operations, and set this renser context as current.
Marking the end of current render operations, and release the binding of this renser
context to current, making it available for another thread as current.
Get all uniform related to this .
Shader program requires this camera.
ContextName of all related uniforms. If you fallow form from
An individual thread doing nothing, and its always returns false.
A sets of complex logic designed for running in multi threads environment. Warning: do not
run a instance in multi threads more than once.
Reset pipeline has risk, this operation is a direct operation to port in current node, the
port on the other node cannot get the change.
Only the fallowing occasions of calling are valid:
1. no bp is running or the only bp is quitting.
2. calling from the main thread and the current running bp.
A microsecond-accuracy timer. It will refresh every a certain time span.
Create a new and define the length of time span. Length
of a single time span is defined in microseconds.
Create a new and define the length of time span. Length
of a single time span is defined in seconds.
Create a new and define the length of time span. Length
of a single time span is defined in microseconds.
Time source provider provided in internal framework.
CustomizeInit this form and render it on screen, and respond with operation
Height of this form, represent in
Width of this form, represent in
Width of this form, represent in
Set the size limit of current form
Minimum size of current form. In form of a of (width,height)
Maximum size of current form. In form of a of (width,height)
Set the size limit of current form
Minimum width of current form
Minimum height of current form
Maximum width of current form
Maximum height of current form
ViewBase is the base type for all view types, providing context binding and control element
binding. A complete view should contain one complete , , and , which provide layout
descriptions of control elements, user responses, and rendering implementations in the view.
Data between instances of , ,
and is shared through .
Get the status of a certain key on the keyboard.
representing if a key is pressed or released.
ViewDesigner provides descriptions of various controls in the view, binds the controls
to specific user actions and behaviors, and describes the layout and interactions of
each control.