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§

Modules§

  • Configure vertex attributes.
  • Configure vertex buffer objects to be sent to the GPU for rendering.
  • General-purpose error and result types returned by public APIs of this crate.
  • Helper macros for working with shaders.
  • Safe wrappers for working with matrix and vector types provided by citro3d.
  • 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.
  • Functionality for parsing and using PICA200 shaders on the 3DS. This module does not compile shaders, but enables using pre-compiled shaders at runtime.
  • Texture combiner support. See https://www.khronos.org/opengl/wiki/Texture_Combiners for more details.
  • Common definitions for binding uniforms to shaders. This is primarily done by implementing the Uniform trait for a given type.

Structs§

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