mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 03:51:39 +12:00
Initial commit (I really need to remove Boost)
This commit is contained in:
commit
b5371dc66c
3226 changed files with 668081 additions and 0 deletions
24
include/emulator.hpp
Normal file
24
include/emulator.hpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
#define NOMINMAX // Windows why
|
||||
#include "helpers.hpp"
|
||||
#include "opengl.hpp"
|
||||
#include "SFML/Window.hpp"
|
||||
#include "SFML/Graphics.hpp"
|
||||
|
||||
class Emulator {
|
||||
sf::RenderWindow window;
|
||||
static constexpr u32 width = 400;
|
||||
static constexpr u32 height = 240 * 2; // * 2 because 2 screens
|
||||
|
||||
public:
|
||||
Emulator() : window(sf::VideoMode(width, height), "Alber", sf::Style::Default, sf::ContextSettings(0, 0, 0, 4, 3)) {
|
||||
reset();
|
||||
window.setActive(true);
|
||||
}
|
||||
|
||||
void step();
|
||||
void render();
|
||||
void reset();
|
||||
void run();
|
||||
void runFrame();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue