GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
gf_draw_t Struct Reference

Drawing interface. More...

#include <gf_type/draw.h>

Data Fields

gf_engine_tengine
 Engine instance.
 
gf_draw_platform_tplatform
 Platform-dependent part of drawing driver.
 
gf_draw_driver_tdriver
 Drawing driver.
 
gf_gui_tgui
 GUI.
 
int close
 1 if it was requested to be closed, otherwise 0
 
int x
 X coord of window.
 
int y
 Y coord of window.
 
int width
 Width of window.
 
int height
 Height of window.
 
int running
 1 if running, otherwise 0
 
int draw_3d
 1 if engine should start rendering 3D stuffs, otherwise 0
 
char title [128]
 Window title.
 
gf_font_tfont
 Current font.
 
gf_math_vector_t light
 Light location.
 
gf_math_vector_t lookat
 Where to look at.
 
gf_math_vector_t camera
 Camera location.
 

Detailed Description

Drawing interface.

Definition at line 101 of file draw.h.

Field Documentation

◆ camera

gf_draw_t::camera

Camera location.

Definition at line 101 of file draw.h.

◆ close

gf_draw_t::close

1 if it was requested to be closed, otherwise 0

Definition at line 101 of file draw.h.

◆ draw_3d

gf_draw_t::draw_3d

1 if engine should start rendering 3D stuffs, otherwise 0

Definition at line 101 of file draw.h.

◆ driver

gf_draw_t::driver

Drawing driver.

Definition at line 101 of file draw.h.

◆ engine

gf_draw_t::engine

Engine instance.

Definition at line 101 of file draw.h.

◆ font

gf_draw_t::font

Current font.

Definition at line 101 of file draw.h.

◆ gui

gf_draw_t::gui

GUI.

Definition at line 101 of file draw.h.

◆ height

gf_draw_t::height

Height of window.

Definition at line 101 of file draw.h.

◆ light

gf_draw_t::light

Light location.

Note
gf_draw_t::light[3] should be 1

Definition at line 101 of file draw.h.

◆ lookat

gf_draw_t::lookat

Where to look at.

Definition at line 101 of file draw.h.

◆ platform

gf_draw_t::platform

Platform-dependent part of drawing driver.

Definition at line 101 of file draw.h.

◆ running

gf_draw_t::running

1 if running, otherwise 0

Definition at line 101 of file draw.h.

◆ title

gf_draw_t::title

Window title.

Definition at line 101 of file draw.h.

◆ width

gf_draw_t::width

Width of window.

Definition at line 101 of file draw.h.

◆ x

gf_draw_t::x

X coord of window.

Definition at line 101 of file draw.h.

◆ y

gf_draw_t::y

Y coord of window.

Definition at line 101 of file draw.h.


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