Untitled 2D game engine pre-alpha
A 2D game engine made with Vulkan in C++
 
Loading...
Searching...
No Matches
draw Namespace Reference

Handles renderering pixels/sprites/etc to the screen. Code can be found in renderer.cpp. More...

Functions

void Pixel (u32Vec2 position, Colour colour)
 Draw pixel to screen at given position.
 
void Pixel (u32 x, u32 y, Colour colour)
 Draw pixel to screen at given position.
 

Detailed Description

Handles renderering pixels/sprites/etc to the screen. Code can be found in renderer.cpp.

Encapsulates all the logic and functionalty for drawing to the screen

Function Documentation

◆ Pixel() [1/2]

void draw::Pixel ( u32 x,
u32 y,
Colour colour )

Draw pixel to screen at given position.

Parameters
xHorizontal conponent of position
yVertical conponent of position
colourColour that the pixel will draw

Definition at line 24 of file renderer.cpp.

◆ Pixel() [2/2]

void draw::Pixel ( u32Vec2 position,
Colour colour )

Draw pixel to screen at given position.

Parameters
positionPosition that pixel is drawn at
colourColour that the pixel will draw

Definition at line 19 of file renderer.cpp.