Untitled 2D game engine pre-alpha
A 2D game engine made with Vulkan in C++
 
Loading...
Searching...
No Matches
renderer.cpp
Go to the documentation of this file.
1
4
5#include "renderer.h"
6#include <vulkan/vulkan.h>
7#include <GLFW/glfw3.h>
8#include <GLFW/glfw3native.h>
9
10// Forward declarations
11namespace
12{
13
14}
15
16// Public
17namespace draw
18{
19 void Pixel(u32Vec2 position, Colour colour)
20 {
21 // Calls other pixel function so writing code isn't duplicated
22 Pixel(position.x, position.y, colour);
23 }
24 void Pixel(u32 x, u32 y, Colour colour)
25 {
26
27 }
28}
29
30// Private
31namespace
32{
33
34}
Handles renderering pixels/sprites/etc to the screen. Code can be found in renderer....
Definition renderer.cpp:18
void Pixel(u32Vec2 position, Colour colour)
Draw pixel to screen at given position.
Definition renderer.cpp:19
Defines draw namespace, can be found in renderer.cpp.
Has alias 'Color'. Holds an 24 bit colour (+ an alpha channel)
2D vector of 32 bit width unsigned integers