Added readFile and writeFile utility functions and changeConfig member function
This commit is contained in:
1 parent
9bfbfb637b
commit
22deb5a7ad
6 files changed
+99
-24
No files matched your search
@@ -19,9 +19,10 @@ namespace nf {
|
||||
void setWindowCursor(HCURSOR hCursor);
|
||||
void addState(IGamestate* state, const char* stateName);
|
||||
void addDefaultState(const char* stateName);
|
||||
void changeState(const char* stateName);
|
||||
void run();
|
||||
void showWindow(bool show);
|
||||
void changeState(const char* stateName);
|
||||
void changeConfig(const Config& in);
|
||||
const Config& getConfig() const;
|
||||
int getFPS() const;
|
||||
bool isInput(unsigned int code);
|
||||
@@ -33,6 +34,7 @@ namespace nf {
|
||||
void registerWindowClass();
|
||||
void toggleFullscreen();
|
||||
RECT getWindowRect() const;
|
||||
void calculateNewWindowPos(int& x, int& y);
|
||||
|
||||
static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
#include <thread>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
namespace nf {
|
||||
#ifdef _DEBUG
|
||||
@@ -39,4 +41,6 @@ std::exit(-1)
|
||||
#endif
|
||||
|
||||
const wchar_t* toWide(const char* in);
|
||||
bool writeFile(const char* filename, const std::string& in);
|
||||
std::string readFile(const char* filename);
|
||||
}
|
||||
Reference in new issue
Block a user