mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
chore(bc): switch BlizzardCore to bc lib
This commit is contained in:
parent
34bcb5c134
commit
2282b8a54a
24 changed files with 28 additions and 478 deletions
|
|
@ -29,6 +29,7 @@ target_link_libraries(gx
|
|||
ui
|
||||
util
|
||||
PUBLIC
|
||||
bc
|
||||
freetype-2.0
|
||||
storm
|
||||
tempest
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
GLEnum CGxDeviceGLL::s_glCubeMapFaces[] = {
|
||||
GL_TEXTURE_CUBE_MAP_POSITIVE_X,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#include "gx/gll/GLBuffer.h"
|
||||
#include "gx/gll/GLDevice.h"
|
||||
#include "gx/gll/GLPool.h"
|
||||
#include "util/BlizzardCore.hpp"
|
||||
#include <bc/Debug.hpp>
|
||||
#include <bc/Memory.hpp>
|
||||
|
||||
bool GLBuffer::m_UsingVBO = 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
#include "gx/gll/GLAbstractWindow.h"
|
||||
#include "gx/gll/GLTypes.h"
|
||||
#include "util/BlizzardCore.hpp"
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#include <bc/Thread.hpp>
|
||||
|
||||
#ifdef __OBJC__
|
||||
#include <AppKit/AppKit.h>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#include "gx/gll/GLContext.h"
|
||||
#include "gx/gll/GLDevice.h"
|
||||
#include "util/Autorelease.hpp"
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
NSOpenGLContext* GLContext::s_MainContext;
|
||||
Blizzard::Thread::TLSSlot GLContext::s_CurrentContext;
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#include <cstring>
|
||||
#include <type_traits>
|
||||
#include <ApplicationServices/ApplicationServices.h>
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
#define GL_MAX_STREAM 4
|
||||
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@
|
|||
#include "gx/gll/GLTypes.h"
|
||||
#include "gx/gll/GLVertexArray.h"
|
||||
#include "gx/gll/GLWorker.h"
|
||||
#include "util/BlizzardCore.hpp"
|
||||
#include <cstdint>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <bc/Thread.hpp>
|
||||
|
||||
class GLDevice {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include "gx/gll/GLMipmap.h"
|
||||
#include "gx/gll/GLPool.h"
|
||||
#include "gx/gll/GLTypes.h"
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
GLFramebuffer* GLFramebuffer::Create(bool a1) {
|
||||
GLFramebuffer* framebuffer = new GLFramebuffer(a1);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#include "gx/gll/GLCommand.h"
|
||||
#include "gx/gll/GLDevice.h"
|
||||
#include "gx/gll/GLFramebuffer.h"
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
int32_t GLMipmap::GetDepthBits() {
|
||||
return this->m_DepthBits;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#include "gx/gll/GLObject.h"
|
||||
#include "util/BlizzardCore.hpp"
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
void GLObject::AddRefTwin() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include "gx/gll/GLPixelShader.h"
|
||||
#include "gx/gll/GLPool.h"
|
||||
#include "gx/gll/GLVertexShader.h"
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
// TODO
|
||||
// - threaded compiler support
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
#include "gx/gll/GLUtil.h"
|
||||
#include "gx/texture/CGxTex.hpp"
|
||||
#include <deque>
|
||||
#include <bc/Debug.hpp>
|
||||
#include <bc/Memory.hpp>
|
||||
|
||||
Blizzard::Thread::TLSSlot GLTexture::m_Bindings[4];
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
#include "gx/gll/GL.h"
|
||||
#include "gx/gll/GLObject.h"
|
||||
#include "gx/gll/GLTypes.h"
|
||||
#include "util/BlizzardCore.hpp"
|
||||
#include <list>
|
||||
#include <vector>
|
||||
#include <bc/Thread.hpp>
|
||||
|
||||
#define GLTFLAG_RENDERTARGET 0x1
|
||||
#define GLTFLAG_DEPTH 0x2
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#include "gx/gll/GLUtil.h"
|
||||
#include "util/BlizzardCore.hpp"
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
uint32_t GLLTextureTypeToIndex(GLEnum textureType) {
|
||||
uint32_t index;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#include "gx/gll/GLVertexArray.h"
|
||||
#include "gx/gll/GLDevice.h"
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
bool GLVertexArray::s_VertexArrayEnable = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include "gx/gll/GLLayerView.h"
|
||||
#include "util/Autorelease.hpp"
|
||||
#include <cmath>
|
||||
#include <bc/Debug.hpp>
|
||||
|
||||
GLWindowCallbacks DefaultCallbacks = {
|
||||
// TODO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue