mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-16 08:27:10 +00:00
Integrated GLEW; began migration to Xlib
This commit is contained in:
@@ -46,6 +46,8 @@ public:
|
||||
virtual void setPixelFormat(EPixelFormat pf)=0;
|
||||
virtual void initializeContext()=0;
|
||||
virtual void makeCurrent()=0;
|
||||
virtual void postInit()=0;
|
||||
virtual void present()=0;
|
||||
|
||||
virtual IGraphicsCommandQueue* getCommandQueue()=0;
|
||||
virtual IGraphicsDataFactory* getDataFactory()=0;
|
||||
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
virtual bool isFullscreen() const=0;
|
||||
virtual void setFullscreen(bool fs)=0;
|
||||
|
||||
virtual size_t waitForRetrace(size_t lastCount)=0;
|
||||
virtual void waitForRetrace()=0;
|
||||
|
||||
virtual uintptr_t getPlatformHandle() const=0;
|
||||
virtual void _incomingEvent(void* event) {(void)event;}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "IGraphicsDataFactory.hpp"
|
||||
#include "IGraphicsCommandQueue.hpp"
|
||||
#include "boo/IGraphicsContext.hpp"
|
||||
#include <GLES3/gl3.h>
|
||||
#include "glew.h"
|
||||
#include <vector>
|
||||
|
||||
namespace boo
|
||||
@@ -30,6 +30,7 @@ public:
|
||||
const IVertexFormat* newVertexFormat(size_t elementCount, const VertexElementDescriptor* elements);
|
||||
|
||||
const IShaderPipeline* newShaderPipeline(const char* vertSource, const char* fragSource,
|
||||
size_t texCount, const char** texNames,
|
||||
BlendFactor srcFac, BlendFactor dstFac,
|
||||
bool depthTest, bool depthWrite, bool backfaceCulling);
|
||||
|
||||
@@ -31,6 +31,7 @@ struct IGraphicsCommandQueue
|
||||
virtual void drawInstances(size_t start, size_t count, size_t instCount)=0;
|
||||
virtual void drawInstancesIndexed(size_t start, size_t count, size_t instCount)=0;
|
||||
|
||||
virtual void present()=0;
|
||||
virtual void execute()=0;
|
||||
};
|
||||
|
||||
|
||||
19753
include/boo/graphicsdev/glew.h
Normal file
19753
include/boo/graphicsdev/glew.h
Normal file
File diff suppressed because it is too large
Load Diff
1772
include/boo/graphicsdev/glxew.h
Normal file
1772
include/boo/graphicsdev/glxew.h
Normal file
File diff suppressed because it is too large
Load Diff
1453
include/boo/graphicsdev/wglew.h
Normal file
1453
include/boo/graphicsdev/wglew.h
Normal file
File diff suppressed because it is too large
Load Diff
@@ -55,7 +55,8 @@ private:
|
||||
}
|
||||
inline bool _insertToken(DeviceToken&& token)
|
||||
{
|
||||
if (DeviceSignature::DeviceMatchToken(token, m_types)) {
|
||||
if (DeviceSignature::DeviceMatchToken(token, m_types))
|
||||
{
|
||||
m_tokensLock.lock();
|
||||
TInsertedDeviceToken inseredTok =
|
||||
m_tokens.insert(std::make_pair(token.getDevicePath(), std::move(token)));
|
||||
|
||||
Reference in New Issue
Block a user