This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void DisplayWindowsError() | |
{ | |
LPVOID lpMsgBuf; | |
DWORD dw = GetLastError(); | |
FormatMessage( | |
FORMAT_MESSAGE_ALLOCATE_BUFFER | | |
FORMAT_MESSAGE_FROM_SYSTEM | | |
FORMAT_MESSAGE_IGNORE_INSERTS, | |
NULL, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GraphicsContext::GraphicsContext(ContextTarget &target) | |
: Target (target) | |
{ | |
PIXELFORMATDESCRIPTOR pfd= // pfd Tells Windows How We Want Things To Be | |
{ | |
sizeof(PIXELFORMATDESCRIPTOR), // Size Of This Pixel Format Descriptor | |
1, // Version Number | |
PFD_DRAW_TO_WINDOW | // Format Must Support Window | |
PFD_SUPPORT_OPENGL | // Format Must Support OpenGL | |
PFD_DOUBLEBUFFER, // Must Support Double Buffering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <vector> | |
#include <memory> | |
#include <Tocs/Math/Vector3.h> | |
#include <Tocs/Math/Vector2.h> | |
#include <Tocs/Core/MemberMacro.h> | |
#include <Tocs/Rendering/Mesh.h> | |
namespace Tocs { | |
namespace MeshTools { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <map> | |
#include <string> | |
#include <memory> | |
namespace Tocs { | |
template <class T> | |
class Asset |