76 return x == rhs.
x &&
y == rhs.
y &&
w == rhs.
w &&
h == rhs.
h;
101 template <
typename T>
106 const double w = vcam.
z * proj[11] + proj[15];
114 vNDC.
x * T(0.5) + T(0.5),
115 vNDC.
y * T(0.5) + T(0.5),
130 Renderer *
Init(Settings);
Definition: Renderer.h:44
Definition: matrix4x4.h:15
T y
Definition: vector3.h:18
T x
Definition: vector3.h:18
T z
Definition: vector3.h:18
Definition: Background.h:14
Renderer * Init(Settings vs)
Definition: Graphics.cpp:76
Renderer *(* RendererCreateFunc)(const Settings &vs)
Definition: Graphics.h:45
void SetFov(float fov)
Definition: Graphics.cpp:55
Material * vtxColorMaterial
Definition: Graphics.cpp:35
RendererType
Definition: Graphics.h:18
@ RENDERER_DUMMY
Definition: Graphics.h:19
@ RENDERER_OPENGL_3x
Definition: Graphics.h:20
@ MAX_RENDERER_TYPE
Definition: Graphics.h:21
float GetFovFactor()
Definition: Graphics.cpp:61
vector3f ProjectToScreen(const Renderer *r, const vector3f &in)
Definition: Graphics.cpp:66
float GetFov()
Definition: Graphics.cpp:50
void Uninit()
Definition: Graphics.cpp:136
const char * RendererNameFromType(const RendererType rType)
Definition: Graphics.cpp:16
std::vector< VideoMode > GetAvailableVideoModes()
Definition: Graphics.cpp:146
int GetScreenWidth()
Definition: Graphics.cpp:40
void RegisterRenderer(RendererType type, RendererCreateFunc fn)
Definition: Graphics.cpp:27
int GetScreenHeight()
Definition: Graphics.cpp:45
Definition: Graphics.h:134
std::unique_ptr< Uint8[]> pixels
Definition: Graphics.h:135
Uint32 height
Definition: Graphics.h:137
Uint32 stride
Definition: Graphics.h:138
Uint32 bpp
Definition: Graphics.h:139
Uint32 width
Definition: Graphics.h:136
Definition: Graphics.h:27
bool useAnisotropicFiltering
Definition: Graphics.h:32
RendererType rendererType
Definition: Graphics.h:28
int height
Definition: Graphics.h:37
bool gl3ForwardCompatible
Definition: Graphics.h:34
const char * title
Definition: Graphics.h:40
bool fullscreen
Definition: Graphics.h:29
bool useTextureCompression
Definition: Graphics.h:31
int vsync
Definition: Graphics.h:35
int requestedSamples
Definition: Graphics.h:36
int width
Definition: Graphics.h:38
const char * iconFile
Definition: Graphics.h:39
bool enableDebugMessages
Definition: Graphics.h:33
bool hidden
Definition: Graphics.h:30
Definition: Graphics.h:49
int height
Definition: Graphics.h:55
int width
Definition: Graphics.h:54
VideoMode(int w, int h)
Definition: Graphics.h:50
Definition: Graphics.h:59
bool operator!=(const ViewportExtents &rhs) const
Definition: Graphics.h:73
int32_t h
Definition: Graphics.h:72
ViewportExtents()
Definition: Graphics.h:60
int32_t w
Definition: Graphics.h:72
int32_t y
Definition: Graphics.h:72
bool operator==(const ViewportExtents &rhs) const
Definition: Graphics.h:74
ViewportExtents(int32_t _x, int32_t _y, int32_t _w, int32_t _h)
Definition: Graphics.h:66
int32_t x
Definition: Graphics.h:72