Draw first triangle
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include <PSX/File/Processor/cd_file_processor.hpp>
|
||||
#include <PSX/AutoLBA/auto_lba_declaration.hpp>
|
||||
#include <PSX/GPU/gpu.hpp>
|
||||
#include <PSX/GPU/gpu_primitives.hpp>
|
||||
#include <stdio.h>
|
||||
|
||||
enum LBA {
|
||||
@@ -38,10 +39,17 @@ static void load_assets() {
|
||||
}
|
||||
|
||||
void main() {
|
||||
const JabyEngine::GPU::POLY_F3 triangle(
|
||||
JabyEngine::GPU::Color24(0x0, 0xFF, 0xFF),
|
||||
{
|
||||
{0, 0}, {320*2, 127}, {0, 255}
|
||||
}
|
||||
);
|
||||
printf("Hello PoolBox!\n");
|
||||
load_assets();
|
||||
|
||||
while(true) {
|
||||
JabyEngine::GPU::render(triangle);
|
||||
JabyEngine::GPU::swap_buffers_vsync(2);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user