Z-Sharp/Slang/graphics.h
2022-01-02 15:59:30 -05:00

47 lines
805 B
C++

#ifndef GRAPHICS_H
#define GRAPHICS_H
#define OLC_PGE_APPLICATION
#include "olcPixelGameEngine.h"
#include <iostream>
#include <fstream>
#include <string>
#include <regex>
#include <limits>
#include <algorithm>
#include "strops.h"
#include "builtin.h"
#include "main.h"
using namespace std;
class Parser : public olc::PixelGameEngine
{
public:
Parser()
{
sAppName = "Parser";
}
public:
bool OnUserCreate() override
{
// Called once at the start
return true;
}
bool OnUserUpdate(float fElapsedTime) override
{
ExecuteFunction("Update", vector<string> {""}, -1);
// Called once per frame
//for (int x = 0; x < ScreenWidth(); x++)
// for (int y = 0; y < ScreenHeight(); y++)
// Draw(x, y, olc::Pixel(rand() % 128, rand() % 128, rand() % 128));
return true;
}
};
#endif