small fixes to make it work with demo project

This commit is contained in:
2026-01-18 00:47:11 +01:00
parent 8ca2e4942f
commit 5a550880ff
17 changed files with 37 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
#include "OpenGLRenderingBackend.hpp"
#include "GL/gl3w.h"
#include "GLFW/glfw3.h"
#include "GL/gl.h"
#include "OpenGLRenderingBackend.hpp"
#include "GLFW/glfw3.h"
#include "WindowGlfw.hpp"
#include "Debug.hpp"
#include "imgui/imgui.h"
@@ -80,11 +80,12 @@ bool TSE::GLFW::OpenGLRenderingBackend::InitPostWindow()
return true;
}
std::string imguiIniPath;
bool TSE::GLFW::OpenGLRenderingBackend::InitEnd()
{
if(useseImGui)
{
string imguiIniPath;
GetAppDataPath(imguiIniPath);
imguiIniPath += "/UI.cfg";
IMGUI_CHECKVERSION();

View File

@@ -1,5 +1,6 @@
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "TextureHelperOpenGL.hpp"
#include <GL/gl3w.h>
void TSE::GLFW::TextureHelperOpenGL::Bind(const Texture *tex)
{

View File

@@ -1,6 +1,7 @@
#pragma once
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "Types.hpp"
namespace TSE::GLFW

View File

@@ -1,5 +1,6 @@
#include "Shader.hpp"
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "Shader.hpp"
#include "Debug.hpp"
TSE::uint TSE::GLFW::Shader::activeProgramID = 0;

View File

@@ -1,7 +1,7 @@
#include "ShaderPart.hpp"
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "ShaderPart.hpp"
#include "Debug.hpp"
#include <fstream>
#include "PathHelper.hpp"

View File

@@ -1,8 +1,9 @@
#pragma once
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "Shader.hpp"
#include "Types.hpp"
#include "GL/gl3w.h"
namespace TSE::GLFW
{

View File

@@ -1,6 +1,7 @@
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "basicShader.hpp"
#include "GL/gl3w.h"
#include "basicShaderGLSL.hpp"
#include "BehaviourScripts/Renderable.hpp"
#include "Color.hpp"

View File

@@ -1,9 +1,10 @@
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "basicTextureShader.hpp"
#include "basicTextureShaderGLSL.hpp"
#include "BehaviourScripts/Renderable.hpp"
#include "Color.hpp"
#include "interfaces/ITexture.hpp"
#include "GL/gl3w.h"
#define SHADER_VERTEX_INDEX 0
#define SHADER_COLOR_INDEX 1

View File

@@ -1,8 +1,9 @@
#include "GL/gl3w.h"
#include "GL/gl.h"
#include "ditheringShader.hpp"
#include "ditheringShaderGLSL.hpp"
#include "BehaviourScripts/Renderable.hpp"
#include "Color.hpp"
#include "GL/gl3w.h"
#define SHADER_VERTEX_INDEX 0
#define SHADER_COLOR_INDEX 1