Goblin3D 0.0.2
Graphics engine for rendering 3D wireframe on monochromatic displays and TFT LCDs without any dependency required for Arduino platform.
goblin3d_obj_t Struct Reference

Structure representing a 3D object for rendering using the Goblin3D library. More...

#include <goblin3d.h>

Public Attributes

float ** points
 
uint32_t ** edges
 
float ** orig_points
 
float ** rotated_points
 
float x_offset
 
float y_offset
 
float z_offset
 
float x_angle_deg
 
float y_angle_deg
 
float z_angle_deg
 
uint32_t point_count
 
uint32_t edge_count
 
float scale_size
 

Detailed Description

Structure representing a 3D object for rendering using the Goblin3D library.

This structure contains the necessary data for representing a 3D object, including the points in 3D space, edges that connect these points, and various transformation parameters such as rotation angles and offsets.

Member Data Documentation

◆ edge_count

uint32_t goblin3d_obj_t::edge_count

The number of edges connecting the points in the 3D object.

◆ edges

uint32_t** goblin3d_obj_t::edges

2D array storing pairs of indices that represent the edges connecting the points.

◆ orig_points

float** goblin3d_obj_t::orig_points

2D array storing the original 3D coordinates of each point before any transformations.

◆ point_count

uint32_t goblin3d_obj_t::point_count

The number of points (vertices) in the 3D object.

◆ points

float** goblin3d_obj_t::points

2D array storing the projected 2D coordinates of each point after transformations.

◆ rotated_points

float** goblin3d_obj_t::rotated_points

2D array storing the 3D coordinates of each point after rotation but before projection.

◆ scale_size

float goblin3d_obj_t::scale_size

Scaling factor applied to the projected points.

◆ x_angle_deg

float goblin3d_obj_t::x_angle_deg

Rotation angle around the X-axis, in degrees.

◆ x_offset

float goblin3d_obj_t::x_offset

Horizontal offset applied to the projected points.

◆ y_angle_deg

float goblin3d_obj_t::y_angle_deg

Rotation angle around the Y-axis, in degrees.

◆ y_offset

float goblin3d_obj_t::y_offset

Vertical offset applied to the projected points.

◆ z_angle_deg

float goblin3d_obj_t::z_angle_deg

Rotation angle around the Z-axis, in degrees.

◆ z_offset

float goblin3d_obj_t::z_offset

Depth offset applied to the projected points.


The documentation for this struct was generated from the following file: