Minor changes
This commit is contained in:
parent
9550924042
commit
07c7e35bff
3 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,7 @@ int main(int argc, char *argv[])
|
||||||
while (!WindowShouldClose()){
|
while (!WindowShouldClose()){
|
||||||
VCPUFetch();
|
VCPUFetch();
|
||||||
VCPUDecode();
|
VCPUDecode();
|
||||||
VCPUExecute();
|
VCPUExecute();
|
||||||
ScreenUpdate();
|
ScreenUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ void ScreenInit(int width, int height){
|
||||||
|
|
||||||
SetTraceLogLevel(LOG_ERROR); // Disable anoying raylib logs
|
SetTraceLogLevel(LOG_ERROR); // Disable anoying raylib logs
|
||||||
InitWindow(width, height, "Chip-8 Emulator");
|
InitWindow(width, height, "Chip-8 Emulator");
|
||||||
SetTargetFPS(200); // Set game to run at 60 frames-per-second
|
SetTargetFPS(30); // Set game to run at 60 frames-per-second
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenClear() {
|
void ScreenClear() {
|
||||||
|
|
|
@ -16,6 +16,7 @@ typedef struct SCREEN_DATA {
|
||||||
void ScreenInit(int width, int height);
|
void ScreenInit(int width, int height);
|
||||||
void ScreenClear();
|
void ScreenClear();
|
||||||
char ScreenPixelApply(int x, int y, unsigned char state);
|
char ScreenPixelApply(int x, int y, unsigned char state);
|
||||||
|
void ScreenPixelFlip(int x, int y);
|
||||||
void ScreenWH(int *width, int *height);
|
void ScreenWH(int *width, int *height);
|
||||||
void ScreenUpdate();
|
void ScreenUpdate();
|
||||||
void ScreenClose();
|
void ScreenClose();
|
||||||
|
|
Loading…
Add table
Reference in a new issue