Module dx::core [−][src]
Expand description
Some partially implemented abstractions
Structs
Enums
Data types for the components of a vertex attribute.
Error codes that can be thrown when performing bitmap
operations. Note that gdk_pixbuf_new_from_file
can also throw
errors directly from the underlying image loading library. For
example, if GdkPixbuf
is used then errors GdkPixbufError
s
will be used directly.
Error enumeration for the blend strings parser
Error enumeration for Buffer
The update hint on a buffer allows the user to give some detail on how often the buffer data is going to be updated.
When using depth testing one of these functions is used to compare
the depth of an incoming fragment against the depth value currently
stored in the depth buffer. The function is changed using
DepthState::set_test_function
.
Identifiers for underlying hardware drivers that may be used by for rendering.
All the capabilities that can vary between different GPUs supported
by . Applications that depend on any of these features should explicitly
check for them using has_feature
or has_features
.
Return values for the XlibFilterFunc
and Win32FilterFunc
functions.
The fog mode determines the equation used to calculate the fogging blend
factor while fogging is enabled. The simplest FogMode::Linear
mode
determines f as:
Identifiers that are passed to FrameCallback
functions
(registered using Onscreen::add_frame_callback
) that
mark the progression of a frame in some way which usually
means that new information will have been accumulated in the
frame’s corresponding FrameInfo
object.
Error codes that relate to the gles2_context api.
You should aim to use the smallest data type that gives you enough range, since it reduces the size of your index array and can help reduce the demand on memory bandwidth.
Alpha testing happens before blending primitives with the framebuffer and
gives an opportunity to discard fragments based on a comparison with the
incoming alpha value and a reference alpha value. The MaterialAlphaFunc
determines how the comparison is done.
Texture filtering is used whenever the current pixel maps either to more than one texture element (texel) or less than one. These filter enums correspond to different strategies used to come up with a pixel color, by possibly referring to multiple neighbouring texels and taking a weighted average or simply using the nearest texel.
Available types of layers for a Material
. This enumeration
might be expanded in later versions.
The wrap mode specifies what happens when texture coordinates
outside the range 0→1 are used. Note that if the filter mode is
anything but MaterialFilter::Nearest
then texels outside the
range 0→1 might be used even when the coordinate is exactly 0 or 1
because OpenGL will try to sample neighbouring pixels. For example
if you are trying to render the full texture then you may get
artifacts around the edges when the pixels from the other side are
merged in if the wrap mode is set to repeat.
Alpha testing happens before blending primitives with the framebuffer and
gives an opportunity to discard fragments based on a comparison with the
incoming alpha value and a reference alpha value. The PipelineAlphaFunc
determines how the comparison is done.
Specifies which faces should be culled. This can be set on a
pipeline using Pipeline::set_cull_face_mode
.
Texture filtering is used whenever the current pixel maps either to more than one texture element (texel) or less than one. These filter enums correspond to different strategies used to come up with a pixel color, by possibly referring to multiple neighbouring texels and taking a weighted average or simply using the nearest texel.
The wrap mode specifies what happens when texture coordinates
outside the range 0→1 are used. Note that if the filter mode is
anything but PipelineFilter::Nearest
then texels outside the
range 0→1 might be used even when the coordinate is exactly 0 or 1
because OpenGL will try to sample neighbouring pixels. For example
if you are trying to render the full texture then you may get
artifacts around the edges when the pixels from the other side are
merged in if the wrap mode is set to repeat.
Pixel formats used by . For the formats with a byte per
component, the order of the components specify the order in
increasing memory addresses. So for example
PixelFormat::Rgb888
would have the red component in the
lowest address, green in the next address and blue after that
regardless of the endianness of the system.
A bitmask of events that may need to wake on for a file descriptor. Note that these all have the same values as the corresponding defines for the poll function call on Unix so they may be directly passed to poll.
Types of shaders
SnippetHook
is used to specify a location within a
Pipeline
where the code of the snippet should be used when it
is attached to a pipeline.
Represents how draw should affect the two buffers
of a stereo framebuffer. See Framebuffer::set_stereo_mode
.
Some output devices (such as LCD panels) display colors by making each pixel consist of smaller “subpixels” that each have a particular color. By using knowledge of the layout of this subpixel components, it is possible to create image content with higher resolution than the pixel grid.
Error enumeration for
See Texture::set_components
.
Error codes that can be thrown when allocating textures.
Error codes that can be thrown when performing texture-pixmap-x11 operations.
Constants representing the underlying hardware texture type of a
Texture
.
Different ways of interpreting vertices when drawing.
Enum used to represent the two directions of rotation. This can be
used to set the front face for culling by calling
Pipeline::set_front_face_winding
.
Identifies specific window system backends that supports.
Traits
Trait containing all Framebuffer
methods.
Trait containing all Texture
methods.