Danbias/Code/OysterGraphics/DllInterfaces/GFXAPI.h

43 lines
980 B
C
Raw Normal View History

2013-11-26 13:44:58 +01:00
#pragma once
#include <string>
#include "..\Model\Model.h"
#include "OysterMath.h"
#include <Windows.h>
2013-11-26 15:33:05 +01:00
#if defined GFX_DLL_EXPORT
#define GFX_DLL_USAGE __declspec(dllexport)
#else
#define GFX_DLL_USAGE __declspec(dllimport)
#endif
2013-11-26 13:44:58 +01:00
namespace Oyster
{
namespace Graphics
{
2013-11-26 15:33:05 +01:00
class GFX_DLL_USAGE API
2013-11-26 13:44:58 +01:00
{
public:
enum State
{
Sucsess,
Fail
};
struct Option
{
};
2013-11-26 15:33:05 +01:00
static State Init(HWND Window, bool MSAA_Quality, bool Fullscreen, Oyster::Math::Float2 StartResulotion);
static void Clean();
2013-11-26 13:44:58 +01:00
//! @brief from Oyster::Math Float4x4, expects corect methods
static void NewFrame(Oyster::Math::Float4x4 View, Oyster::Math::Float4x4 Projection);
static void RenderScene(Oyster::Graphics::Model::Model* models, int count);
static void EndFrame();
static Oyster::Graphics::Model::Model* CreateModel(std::wstring filename);
static void DeleteModel(Oyster::Graphics::Model::Model* model);
static State SetOptions(Option);
};
}
}