Module blue_engine::header

source ·
Expand description

contains all the declarations such as structs, exports, enums, …

Re-exports§

Modules§

  • re-exports from dependencies that are useful
  • few commonly used uniform buffer structures

Structs§

  • Container for the camera feature. The settings here are needed for algebra equations needed for camera vision and movement. Please leave it to the renderer to handle
  • The engine is the main starting point of using the Blue Engine. Everything that runs on Blue Engine will be under this struct. The structure of engine is monolithic, but the underlying data and the way it works is not. It gives a set of default data to work with, but also allow you to go beyond that and work as low level as you wish to.
  • Instance buffer data storage
  • Instance buffer data that is sent to GPU
  • Objects make it easier to work with Blue Engine, it automates most of work needed for creating 3D objects and showing them on screen. A range of default objects are available as well as ability to customize each of them and even create your own! You can also customize almost everything there is about them!
  • Extra settings to customize objects on time of creation
  • A unified way to handle objects
  • Container for pipeline values. Each pipeline takes only 1 vertex shader, 1 fragment shader, 1 texture data, and optionally a vector of uniform data.
  • Main renderer class. this will contain all methods and data related to the renderer
  • These definitions are taken from wgpu API docs
  • Handles the live events in the engine
  • Will contain all details about a vertex and will be sent to GPU
  • Container for vertex and index buffer
  • Descriptor and settings for a window.

Enums§

  • Handles the order in which a functionality in the engine should be executed
  • Container for pipeline data. Allows for sharing resources with other objects
  • Container for the projection used by the camera
  • Defines how the rotation axis is
  • Defines how the texture data is
  • Defines how the borders of texture would look like

Constants§

Traits§

Functions§

  • This function helps in converting pixel value to the value that is between -1 and +1