update ports

main
Dominik Madarász 2023-08-10 16:57:57 +02:00
parent 5f798d0d8d
commit 01f7395c82
4 changed files with 6 additions and 5 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@ emsdk
demos/html5/*.data demos/html5/*.data
demos/html5/*.js demos/html5/*.js
demos/html5/*.html demos/html5/*.html
demos/ports/*/*.exe
demos/ports/doom/.doomrc

View File

@ -1,4 +1,4 @@
cl game.c -I..\..\..\engine\joint %* /link /SUBSYSTEM:WINDOWS /entry:mainCRTStartup cl game.c ..\..\..\engine\v4k.c -I..\..\..\engine %* /link /SUBSYSTEM:WINDOWS /entry:mainCRTStartup
del *.obj del *.obj
del *.exp del *.exp

View File

@ -10,7 +10,6 @@
whatsoever. whatsoever.
*/ */
#define V4K_IMPLEMENTATION
#include "v4k.h" #include "v4k.h"
#ifdef _MSC_VER #ifdef _MSC_VER
@ -135,11 +134,11 @@ int main() {
SFG_init(); SFG_init();
window_create(0.75, 0); window_create(0.45, WINDOW_SQUARE);
texture_t t = texture_checker(); texture_t t = texture_checker();
while( window_swap() && SFG_mainLoopBody() ) { while( window_swap() && SFG_mainLoopBody() ) {
texture_update(&t, SFG_SCREEN_RESOLUTION_X, SFG_SCREEN_RESOLUTION_Y, 4, screen, TEXTURE_RGB|TEXTURE_LINEAR); texture_update(&t, SFG_SCREEN_RESOLUTION_X, SFG_SCREEN_RESOLUTION_Y, 4, screen, TEXTURE_RGB|TEXTURE_NEAREST);
fullscreen_quad_rgb(t, 1.0f); fullscreen_quad_rgb(t, 1.0f);
uint16_t samples[128]; // 8 KHz 16-bit mono = 8000/60 = 133 samples/frame -> 256 samples/frame uint16_t samples[128]; // 8 KHz 16-bit mono = 8000/60 = 133 samples/frame -> 256 samples/frame

View File

@ -167,7 +167,7 @@ int main(int argc, char** argv) {
doom_init(argc, argv, DOOM_FLAG_MENU_DARKEN_BG); doom_init(argc, argv, DOOM_FLAG_MENU_DARKEN_BG);
// Init app // Init app
window_create(0.75, 0); window_create(0.45, WINDOW_SQUARE);
window_aspect_lock(DOOM_WIDTH, DOOM_HEIGHT); window_aspect_lock(DOOM_WIDTH, DOOM_HEIGHT);
window_title("Pure DOOM"); window_title("Pure DOOM");
window_cursor(false); window_cursor(false);