FxEngine  0.0.1
3d engine for fx9860G calculators
Data Structures | Macros | Functions | Variables
triangle.h File Reference
#include <render/translate.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  render_triangle
 Triangle struct used to render fonctions. More...
 

Macros

#define MINIMUM_FRAME_DELAY   3333
 Regulates the maximum fps count to 30 fps. More...
 

Functions

struct render_triangle render_display_triangle (const render_triangle *face) void render_update(const uint32_t libprof_channel
 Renders a triangle with perspective deformation. More...
 

Variables

render_integer_positions1
 
render_integer_positions2
 
render_integer_positions3
 
render_rich_bitmap * texture
 
bool part
 
bool clockwised
 
struct render_triangle const double dh
 
struct render_triangle const double const double dv
 
struct render_triangle const double const double const double roulis
 
struct render_triangle const double const double const double const render_integer_positioncamera
 

Macro Definition Documentation

◆ MINIMUM_FRAME_DELAY

#define MINIMUM_FRAME_DELAY   3333

Regulates the maximum fps count to 30 fps.

Definition at line 10 of file triangle.h.

Function Documentation

◆ render_display_triangle()

struct render_triangle render_display_triangle ( const render_triangle face) const

Renders a triangle with perspective deformation.

Parameters
[in]facepointer to the face to drawClears vram, zbuffer, and prepares rotation matrices with render_set
[in]libprof_channelThe libprof channel to be used to count_fps
[in]dhHorizontal direction (rad)
[in]dvVertical direction (rad)
[in]roulisThe roulis (rad)
[in]cameraPointer to the camera

Variable Documentation

◆ camera

struct render_triangle const double const double const double const render_integer_position* camera

Definition at line 47 of file triangle.h.

◆ clockwised

bool clockwised

Definition at line 47 of file triangle.h.

◆ dh

struct render_triangle const double dh

Definition at line 47 of file triangle.h.

◆ dv

struct render_triangle const double const double dv

Definition at line 47 of file triangle.h.

◆ part

bool part

Definition at line 46 of file triangle.h.

◆ roulis

struct render_triangle const double const double const double roulis

Definition at line 47 of file triangle.h.

◆ s1

Definition at line 40 of file triangle.h.

◆ s2

Definition at line 41 of file triangle.h.

◆ s3

Definition at line 42 of file triangle.h.

◆ texture

render_rich_bitmap* texture

Definition at line 44 of file triangle.h.