Expand description
Rendering framework.
Modules§
- buffer
- Buffer is a type-agnostic data storage located directly in GPU memory. It could be considered as a data block which content is a pile of bytes, whose meaning is defined externally.
- core
- Core data structures and algorithms used throughout Fyrox.
- error
- Contains all possible errors that may occur during rendering, initialization of renderer structures, or GAPI.
- framebuffer
- Frame buffer is a set of images that is used as a storage for an image generated by a renderer.
It consists of one or more color buffers and an optional depth/stencil buffer. See
FrameBuffer
docs for more info. - geometry_
buffer - Geometry buffer is a mesh buffer, that could contain multiple vertex buffers and only one element buffer.
- gl
- gpu_
program - gpu_
texture - Texture is an image that used to fill faces to add details to them. It could also be used as a generic and mostly unlimited capacity storage for arbitrary data.
- query
- read_
buffer - server
- Graphics server is an abstraction layer over various graphics APIs used on different platforms supported by the engine.
- stats
- uniform
- Uniform buffer is a special byte storage that ensures correct data alignment suitable for GPU.
Current implementation supports
std140
data layout scheme.
Structs§
- Blend
Equation - An equation used for blending a source pixel color with the destination color (the one that is already in a frame buffer). This equation has different modes for rgb/alpha parts.
- Blend
Func - Blending function defines sources of data for both operands in blending equation (separately for RGB and Alpha parts). Default blending function is replacing destination values with the source ones.
- Blend
Parameters - Blending parameters (such as blending function and its equation).
- Color
Mask - A mask that defines which colors will be stored in a frame buffer during rendering operation.
By default, all colors are stored (every field is set to
true
). - Draw
Parameters - A set of drawing parameters, that are used during draw call. It defines pretty much all pipeline settings all at once.
- Scissor
Box - A rectangular area that defines which pixels will be rendered in a frame buffer or not.
- Stencil
Func - Defines a function that used in a stencil test.
- Stencil
Op - A set of actions that will be performed with the stencil buffer during various testing stages.
Enums§
- Blend
Factor - Defines a set values (per color) for blending operation.
- Blend
Mode - Defines an operation used in blending equation.
- Compare
Func - A function used to compare two values. Usually it is used for depth and stencil testing.
- Cull
Face - A face side to cull.
- Element
Kind - Element kind of geometry.
- Element
Range - A range of elements (usually it’s triangles) to draw in a draw call.
- Polygon
Face - Defines a polygon face that will be rendered. This is usually used for back face culling.
Default value is
PolygonFace::FrontAndBack
. - Polygon
Fill Mode - A set of possible polygon filling modes.
- Stencil
Action - An action with the stencil value in the stencil buffer is the stencil test passed.
Traits§
- Geometry
Buffer Ext - Extension trait for
GeometryBuffer
.