olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
Loading...
Searching...
No Matches
olc::GFX3D Class Reference

#include <olcPGEX_Graphics3D.h>

Inheritance diagram for olc::GFX3D:
olc::PGEX

Classes

struct  mat4x4
 
class  Math
 
struct  mesh
 
class  PipeLine
 
struct  triangle
 
struct  vec2d
 
struct  vec3d
 

Public Types

enum  RENDERFLAGS {
  RENDER_WIRE = 0x01 , RENDER_FLAT = 0x02 , RENDER_TEXTURED = 0x04 , RENDER_CULL_CW = 0x08 ,
  RENDER_CULL_CCW = 0x10 , RENDER_DEPTH = 0x20 , RENDER_LIGHTS = 0x40
}
 
enum  LIGHTS { LIGHT_DISABLED , LIGHT_AMBIENT , LIGHT_DIRECTIONAL , LIGHT_POINT }
 

Static Public Member Functions

static void ConfigureDisplay ()
 
static void ClearDepth ()
 
static void AddTriangleToScene (olc::GFX3D::triangle &tri)
 
static void RenderScene ()
 
static void DrawTriangleFlat (olc::GFX3D::triangle &tri)
 
static void DrawTriangleWire (olc::GFX3D::triangle &tri, olc::Pixel col=olc::WHITE)
 
static void DrawTriangleTex (olc::GFX3D::triangle &tri, olc::Sprite *spr)
 
static void TexturedTriangle (int x1, int y1, float u1, float v1, float w1, int x2, int y2, float u2, float v2, float w2, int x3, int y3, float u3, float v3, float w3, olc::Sprite *spr)
 
static void RasterTriangle (int x1, int y1, float u1, float v1, float w1, olc::Pixel c1, int x2, int y2, float u2, float v2, float w2, olc::Pixel c2, int x3, int y3, float u3, float v3, float w3, olc::Pixel c3, olc::Sprite *spr, uint32_t nFlags)
 

Additional Inherited Members

- Public Member Functions inherited from olc::PGEX
 PGEX (bool bHook=false)
 
- Protected Member Functions inherited from olc::PGEX
virtual void OnBeforeUserCreate ()
 
virtual void OnAfterUserCreate ()
 
virtual bool OnBeforeUserUpdate (float &fElapsedTime)
 
virtual void OnAfterUserUpdate (float fElapsedTime)
 
- Static Protected Attributes inherited from olc::PGEX
static PixelGameEnginepge
 

Member Enumeration Documentation

◆ LIGHTS

Enumerator
LIGHT_DISABLED 
LIGHT_AMBIENT 
LIGHT_DIRECTIONAL 
LIGHT_POINT 

◆ RENDERFLAGS

Enumerator
RENDER_WIRE 
RENDER_FLAT 
RENDER_TEXTURED 
RENDER_CULL_CW 
RENDER_CULL_CCW 
RENDER_DEPTH 
RENDER_LIGHTS 

Member Function Documentation

◆ AddTriangleToScene()

static void olc::GFX3D::AddTriangleToScene ( olc::GFX3D::triangle & tri)
static

◆ ClearDepth()

static void olc::GFX3D::ClearDepth ( )
static

◆ ConfigureDisplay()

static void olc::GFX3D::ConfigureDisplay ( )
static

◆ DrawTriangleFlat()

static void olc::GFX3D::DrawTriangleFlat ( olc::GFX3D::triangle & tri)
static

◆ DrawTriangleTex()

static void olc::GFX3D::DrawTriangleTex ( olc::GFX3D::triangle & tri,
olc::Sprite * spr )
static

◆ DrawTriangleWire()

static void olc::GFX3D::DrawTriangleWire ( olc::GFX3D::triangle & tri,
olc::Pixel col = olc::WHITE )
static

◆ RasterTriangle()

static void olc::GFX3D::RasterTriangle ( int x1,
int y1,
float u1,
float v1,
float w1,
olc::Pixel c1,
int x2,
int y2,
float u2,
float v2,
float w2,
olc::Pixel c2,
int x3,
int y3,
float u3,
float v3,
float w3,
olc::Pixel c3,
olc::Sprite * spr,
uint32_t nFlags )
static

◆ RenderScene()

static void olc::GFX3D::RenderScene ( )
static

◆ TexturedTriangle()

static void olc::GFX3D::TexturedTriangle ( int x1,
int y1,
float u1,
float v1,
float w1,
int x2,
int y2,
float u2,
float v2,
float w2,
int x3,
int y3,
float u3,
float v3,
float w3,
olc::Sprite * spr )
static

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