chore(bc): switch BlizzardCore to bc lib

This commit is contained in:
fallenoak 2023-03-04 11:29:25 -06:00 committed by GitHub
parent 34bcb5c134
commit 2282b8a54a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 28 additions and 478 deletions

View file

@ -29,6 +29,7 @@ target_link_libraries(gx
ui
util
PUBLIC
bc
freetype-2.0
storm
tempest

View file

@ -10,6 +10,7 @@
#include <cmath>
#include <cstdio>
#include <cstring>
#include <bc/Debug.hpp>
GLEnum CGxDeviceGLL::s_glCubeMapFaces[] = {
GL_TEXTURE_CUBE_MAP_POSITIVE_X,

View file

@ -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;

View file

@ -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>

View file

@ -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;

View file

@ -7,6 +7,7 @@
#include <cstring>
#include <type_traits>
#include <ApplicationServices/ApplicationServices.h>
#include <bc/Debug.hpp>
#define GL_MAX_STREAM 4

View file

@ -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:

View file

@ -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);

View file

@ -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;

View file

@ -1,5 +1,5 @@
#include "gx/gll/GLObject.h"
#include "util/BlizzardCore.hpp"
#include <bc/Debug.hpp>
void GLObject::AddRefTwin() {
}

View file

@ -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

View file

@ -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];

View file

@ -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

View file

@ -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;

View file

@ -1,5 +1,6 @@
#include "gx/gll/GLVertexArray.h"
#include "gx/gll/GLDevice.h"
#include <bc/Debug.hpp>
bool GLVertexArray::s_VertexArrayEnable = false;

View file

@ -3,6 +3,7 @@
#include "gx/gll/GLLayerView.h"
#include "util/Autorelease.hpp"
#include <cmath>
#include <bc/Debug.hpp>
GLWindowCallbacks DefaultCallbacks = {
// TODO