Crate citro3d

Source
Expand description

Safe Rust bindings to citro3d. This crate wraps citro3d-sys to provide safer APIs for graphics programs targeting the 3DS.

§Feature flags

  • approx — Enable this feature to use the approx crate for comparing vectors and matrices.
  • glam (enabled by default) — Enable for glam support in uniforms

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

attrib
Configure vertex attributes.
buffer
Configure vertex buffer objects to be sent to the GPU for rendering.
color
Color manipulation module.
error
General-purpose error and result types returned by public APIs of this crate.
fog
Fog/Gas unit configuration.
light
Bindings for accessing the lighting part of the GPU pipeline
macros
Helper macros for working with shaders.
math
Safe wrappers for working with matrix and vector types provided by citro3d.
render
This module provides render target types and options for controlling transfer of data to the GPU, including the format of color and depth data to be rendered.
shader
Functionality for parsing and using PICA200 shaders on the 3DS. This module does not compile shaders, but enables using pre-compiled shaders at runtime.
texenv
Texture combiner support. See https://www.khronos.org/opengl/wiki/Texture_Combiners for more details.
texture
uniform
Common definitions for binding uniforms to shaders. This is primarily done by implementing the Uniform trait for a given type.

Structs§

Instance
The single instance for using citro3d. This is the base type that an application should instantiate to use this library.