First blood
This commit is contained in:
1 parent
04f270f322
commit
5720f8322b
250 files changed
+33215
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#ifndef HALIBUT_RENDER_ANDROID_H_INCLUDED
|
||||
#define HALIBUT_RENDER_ANDROID_H_INCLUDED
|
||||
|
||||
|
||||
#include "include/Utils/Utils.h"
|
||||
|
||||
#include "include/Render/HalibutRender/HalibutRenderGLES20.h"
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
class THalibutRendererAndroid : public THalibutRendererGLES20
|
||||
{
|
||||
};
|
||||
|
||||
} //namespace SE
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef HALIBUT_RENDER_GLES20_H_INCLUDED
|
||||
#define HALIBUT_RENDER_GLES20_H_INCLUDED
|
||||
|
||||
#include "include/Utils/Utils.h"
|
||||
|
||||
#include "include/Render/HalibutRender/HalibutRenderInterface.h"
|
||||
#include "include/Render/RenderMisc.h"
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
class THalibutRendererGLES20 : public THalibutRendererInterface
|
||||
{
|
||||
protected:
|
||||
|
||||
void DrawQuad(const T2DQuad& quad);
|
||||
|
||||
public:
|
||||
THalibutRendererGLES20();
|
||||
~THalibutRendererGLES20();
|
||||
|
||||
virtual void DrawTriangleList(const TTriangleList& triangleList);
|
||||
|
||||
};
|
||||
|
||||
} //namespace SE
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,32 @@
|
||||
#ifndef HALIBUT_RENDER_INTERFACE_H_INCLUDED
|
||||
#define HALIBUT_RENDER_INTERFACE_H_INCLUDED
|
||||
|
||||
#include "include/Utils/Utils.h"
|
||||
#include "include/Render/RenderInterface.h"
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
class THalibutRendererInterface : public TRendererInterface
|
||||
{
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
virtual void SetUniforms();
|
||||
|
||||
virtual void InitOpenGL(int screenWidth, int screenHeight, float matrixWidth, float matrixHeight);
|
||||
|
||||
virtual void SwitchToScreen();
|
||||
virtual void SwitchToFrameBuffer(const std::string& frameName);
|
||||
|
||||
virtual void PrintMatrices();
|
||||
|
||||
|
||||
};
|
||||
|
||||
} //namespace SE
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef HALIBUT_RENDER_IOS_H_INCLUDED
|
||||
#define HALIBUT_RENDER_IOS_H_INCLUDED
|
||||
|
||||
|
||||
#include "include/Utils/Utils.h"
|
||||
|
||||
#include "include/Render/HalibutRender/HalibutRenderGLES20.h"
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
class THalibutRenderIos : public THalibutRendererGLES20
|
||||
{
|
||||
};
|
||||
|
||||
} //namespace SE
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "include/Utils/Utils.h"
|
||||
#include "include/Render/HalibutRender/HalibutRenderInterface.h"
|
||||
#include "include/Render/RenderMisc.h"
|
||||
|
||||
#include "boost/shared_ptr.hpp"
|
||||
#include "include/OpenGLExt/OpenGlExt.h"
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
class THalibutRenderer : public THalibutRendererInterface
|
||||
{
|
||||
protected:
|
||||
|
||||
|
||||
void DrawTriangleStripImmediate(const TTriangleList& triangleList);
|
||||
void DrawQuad(const T2DQuad& quad);
|
||||
public:
|
||||
THalibutRenderer();
|
||||
~THalibutRenderer();
|
||||
|
||||
bool BindOpenGLFunctions(); //Must be called once
|
||||
|
||||
virtual void DrawTriangleList(const TTriangleList& triangleList);
|
||||
|
||||
};
|
||||
|
||||
} //namespace SE
|
||||
Reference in new issue
Block a user