2024-12-25 23:35:38 +00:00
|
|
|
// RenderWindow.cpp
|
|
|
|
|
2024-12-25 21:44:33 +00:00
|
|
|
#include "RenderWindow.h"
|
2024-12-26 00:15:18 +00:00
|
|
|
#include <vector> // Add this line
|
|
|
|
|
2024-12-25 21:44:33 +00:00
|
|
|
#include <GL/glew.h>
|
2024-12-25 23:01:05 +00:00
|
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
|
|
#include <glm/gtc/type_ptr.hpp>
|
2024-12-25 21:44:33 +00:00
|
|
|
#include "imgui.h"
|
|
|
|
|
2024-12-27 01:34:34 +00:00
|
|
|
#include "gcml.h"
|
2024-12-26 00:15:18 +00:00
|
|
|
|
2024-12-27 01:34:34 +00:00
|
|
|
#include "Componenets/GameObject.h"
|
|
|
|
#include "Componenets/mesh.h"
|
|
|
|
#include "Componenets/transform.h"
|
2024-12-26 00:15:18 +00:00
|
|
|
|
2024-12-27 01:34:34 +00:00
|
|
|
extern std::vector<std::shared_ptr<GameObject>> g_GameObjects;
|
2024-12-26 00:53:17 +00:00
|
|
|
|
2024-12-27 01:34:34 +00:00
|
|
|
#define CAM_FOV 45.0f
|
|
|
|
#define CAM_NEAR_PLAIN 0.1f
|
2024-12-30 06:51:58 +00:00
|
|
|
#define CAM_FAR_PLAIN 2048.0f
|
2024-12-26 00:15:18 +00:00
|
|
|
|
2024-12-25 23:35:38 +00:00
|
|
|
// Include your AssetManager & Shader headers
|
|
|
|
#include "Engine/AssetManager.h"
|
|
|
|
#include "Rendering/Shader.h"
|
2024-12-25 21:44:33 +00:00
|
|
|
|
2025-01-01 04:31:58 +00:00
|
|
|
#include "Icons.h"
|
|
|
|
|
2024-12-25 23:35:38 +00:00
|
|
|
// Extern reference to our global (or extern) asset manager
|
2024-12-25 23:01:05 +00:00
|
|
|
extern AssetManager g_AssetManager;
|
2024-12-25 21:44:33 +00:00
|
|
|
|
2024-12-30 04:25:16 +00:00
|
|
|
extern std::shared_ptr<CameraComponent> g_RuntimeCameraObject;
|
|
|
|
|
2024-12-29 02:50:39 +00:00
|
|
|
extern int g_GPU_Triangles_drawn_to_screen;
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-31 22:35:06 +00:00
|
|
|
bool PlayPauseButton(const char *label, bool *isPlaying, ImVec2 Size)
|
2024-12-25 21:44:33 +00:00
|
|
|
{
|
2024-12-29 02:50:39 +00:00
|
|
|
// Define button size
|
|
|
|
|
|
|
|
// Begin the button
|
2024-12-31 22:35:06 +00:00
|
|
|
if (ImGui::Button(label, Size))
|
2024-12-29 02:50:39 +00:00
|
|
|
{
|
|
|
|
// Toggle the state
|
|
|
|
*isPlaying = !(*isPlaying);
|
|
|
|
return true; // Indicate that the state was toggled
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add tooltip
|
|
|
|
if (ImGui::IsItemHovered())
|
|
|
|
{
|
|
|
|
ImGui::SetTooltip(*isPlaying ? "Pause (Space)" : "Play (Space)");
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get the current window's draw list
|
2024-12-31 22:35:06 +00:00
|
|
|
ImDrawList *draw_list = ImGui::GetWindowDrawList();
|
2024-12-29 02:50:39 +00:00
|
|
|
|
|
|
|
// Get the position of the button
|
|
|
|
ImVec2 button_pos = ImGui::GetItemRectMin();
|
|
|
|
ImVec2 button_size = ImGui::GetItemRectSize();
|
|
|
|
ImVec2 center = ImVec2(button_pos.x + button_size.x * 0.5f, button_pos.y + button_size.y * 0.5f);
|
|
|
|
|
|
|
|
// Define icon size
|
2024-12-31 22:35:06 +00:00
|
|
|
float icon_size = 0.4f * Size.x;
|
2024-12-29 02:50:39 +00:00
|
|
|
float half_icon_size = icon_size / 2.0f;
|
|
|
|
|
|
|
|
// Define colors
|
|
|
|
ImU32 icon_color = ImGui::GetColorU32(ImGuiCol_Text);
|
|
|
|
|
|
|
|
if (*isPlaying)
|
|
|
|
{
|
|
|
|
// Draw Pause Icon (two vertical bars)
|
|
|
|
float bar_width = 4.0f;
|
2024-12-31 22:35:06 +00:00
|
|
|
float spacing = 0.1f * Size.x;
|
2024-12-29 02:50:39 +00:00
|
|
|
|
|
|
|
// Left bar
|
|
|
|
ImVec2 left_bar_p1 = ImVec2(center.x - spacing - bar_width, center.y - half_icon_size);
|
|
|
|
ImVec2 left_bar_p2 = ImVec2(center.x - spacing, center.y + half_icon_size);
|
|
|
|
draw_list->AddRectFilled(left_bar_p1, left_bar_p2, icon_color, 2.0f);
|
|
|
|
|
|
|
|
// Right bar
|
|
|
|
ImVec2 right_bar_p1 = ImVec2(center.x + spacing, center.y - half_icon_size);
|
|
|
|
ImVec2 right_bar_p2 = ImVec2(center.x + spacing + bar_width, center.y + half_icon_size);
|
|
|
|
draw_list->AddRectFilled(right_bar_p1, right_bar_p2, icon_color, 2.0f);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Draw Play Icon (triangle)
|
|
|
|
ImVec2 p1 = ImVec2(center.x - half_icon_size, center.y - half_icon_size);
|
|
|
|
ImVec2 p2 = ImVec2(center.x - half_icon_size, center.y + half_icon_size);
|
|
|
|
ImVec2 p3 = ImVec2(center.x + half_icon_size, center.y);
|
|
|
|
draw_list->AddTriangleFilled(p1, p2, p3, icon_color);
|
|
|
|
}
|
|
|
|
|
|
|
|
return false; // No toggle occurred
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-31 22:35:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-29 02:50:39 +00:00
|
|
|
void RenderWindow::Show(bool *GameRunning)
|
|
|
|
{
|
2025-01-01 04:31:58 +00:00
|
|
|
ImGui::Begin(ICON_FA_GAMEPAD " Editor##EditorWindow");
|
2024-12-25 21:44:33 +00:00
|
|
|
|
|
|
|
if (!m_Initialized)
|
|
|
|
{
|
|
|
|
InitGLResources();
|
|
|
|
m_Initialized = true;
|
|
|
|
}
|
|
|
|
|
2024-12-31 22:35:06 +00:00
|
|
|
ImVec2 size = ImGui::GetContentRegionAvail();
|
|
|
|
int w = static_cast<int>(size.x);
|
|
|
|
int h = static_cast<int>(size.y);
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-25 23:35:38 +00:00
|
|
|
// If there's space, render to the FBO, then show it as an ImGui image
|
2024-12-25 21:44:33 +00:00
|
|
|
if (w > 0 && h > 0)
|
|
|
|
{
|
|
|
|
if (w != m_LastWidth || h != m_LastHeight)
|
|
|
|
{
|
|
|
|
m_FBO.Create(w, h);
|
2024-12-27 01:34:34 +00:00
|
|
|
m_LastWidth = w;
|
2024-12-25 21:44:33 +00:00
|
|
|
m_LastHeight = h;
|
|
|
|
}
|
|
|
|
|
2024-12-30 04:25:16 +00:00
|
|
|
RenderSceneToFBO(GameRunning);
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-31 22:35:06 +00:00
|
|
|
// Render the image first
|
2024-12-27 01:34:34 +00:00
|
|
|
ImGui::Image(m_FBO.GetTextureID(), size, ImVec2(0, 0), ImVec2(1, 1));
|
2024-12-31 22:35:06 +00:00
|
|
|
|
|
|
|
// Calculate button position to place it slightly right and down from the top-left of the image
|
|
|
|
ImVec2 imagePos = ImGui::GetItemRectMin();
|
|
|
|
|
|
|
|
// Add an offset to position the button
|
|
|
|
ImVec2 buttonOffset(10.0f, 10.0f); // Adjust these values as needed for the desired offset
|
|
|
|
ImVec2 buttonPos = ImVec2(imagePos.x + buttonOffset.x, imagePos.y + buttonOffset.y);
|
|
|
|
|
|
|
|
// Set cursor position for the button
|
|
|
|
ImGui::SetCursorScreenPos(buttonPos);
|
|
|
|
|
|
|
|
// Dynamically calculate button size based on window size
|
|
|
|
float buttonWidth = size.x * 0.03f; // 5% of the window width
|
|
|
|
ImVec2 buttonSize = ImVec2(buttonWidth, buttonWidth);
|
|
|
|
|
|
|
|
// Render the Play/Pause button with the calculated size
|
|
|
|
PlayPauseButton("##PlayPauseButton", GameRunning, buttonSize);
|
2024-12-25 21:44:33 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ImGui::Text("No space to render.");
|
|
|
|
}
|
|
|
|
|
2024-12-29 02:50:39 +00:00
|
|
|
ImGui::End();
|
2024-12-25 21:44:33 +00:00
|
|
|
}
|
|
|
|
|
2024-12-31 22:35:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-25 21:44:33 +00:00
|
|
|
void RenderWindow::InitGLResources()
|
|
|
|
{
|
2024-12-25 23:35:38 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// 1) Load SHADER from the asset manager
|
|
|
|
// ----------------------------------------------------
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-25 21:44:33 +00:00
|
|
|
{
|
2024-12-31 08:40:23 +00:00
|
|
|
std::shared_ptr<Shader> shaderAsset = g_AssetManager.loadAsset<Shader>(AssetType::SHADER, "assets/shaders/UnlitMaterial");
|
2024-12-25 23:35:38 +00:00
|
|
|
if (!shaderAsset)
|
|
|
|
{
|
|
|
|
fprintf(stderr, "[RenderWindow] Failed to load shader via AssetManager.\n");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// Cast back to your Shader class
|
2024-12-31 08:40:23 +00:00
|
|
|
m_ShaderPtr = shaderAsset.get();
|
2024-12-25 21:44:33 +00:00
|
|
|
}
|
|
|
|
|
2024-12-25 23:01:05 +00:00
|
|
|
|
2024-12-25 23:35:38 +00:00
|
|
|
// ----------------------------------------------------
|
|
|
|
// 3) Load TEXTURE from the asset manager
|
|
|
|
// ----------------------------------------------------
|
2024-12-25 23:01:05 +00:00
|
|
|
{
|
2024-12-31 08:40:23 +00:00
|
|
|
std::shared_ptr<GLuint> texAsset = g_AssetManager.loadAsset<GLuint>(AssetType::TEXTURE, "assets/textures/wood.png");
|
2024-12-25 23:35:38 +00:00
|
|
|
if (!texAsset)
|
2024-12-25 23:01:05 +00:00
|
|
|
{
|
2024-12-25 23:35:38 +00:00
|
|
|
fprintf(stderr, "[RenderWindow] Failed to load texture.\n");
|
2024-12-25 23:01:05 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2024-12-25 23:35:38 +00:00
|
|
|
// Cast from void* to GLuint
|
2024-12-31 08:40:23 +00:00
|
|
|
m_TextureID = *texAsset; // Assign the GLuint value
|
2024-12-25 23:01:05 +00:00
|
|
|
}
|
|
|
|
}
|
2024-12-26 00:15:18 +00:00
|
|
|
|
|
|
|
// ----------------------------------------------------
|
|
|
|
// 4) Initialize GameObjects
|
|
|
|
// ----------------------------------------------------
|
2024-12-27 01:34:34 +00:00
|
|
|
}
|
2024-12-26 00:15:18 +00:00
|
|
|
|
2024-12-30 04:25:16 +00:00
|
|
|
void CheckOpenGLError(const std::string &location)
|
2024-12-25 21:44:33 +00:00
|
|
|
{
|
2024-12-30 04:25:16 +00:00
|
|
|
GLenum err;
|
|
|
|
bool hasError = false;
|
|
|
|
while ((err = glGetError()) != GL_NO_ERROR)
|
|
|
|
{
|
|
|
|
std::cerr << "[OpenGL Error] (" << err << ") at " << location << std::endl;
|
|
|
|
hasError = true;
|
|
|
|
}
|
|
|
|
if (hasError)
|
|
|
|
{
|
|
|
|
// Optionally, you can throw an exception or handle the error as needed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
#include <glm/gtc/type_ptr.hpp> // For glm::value_ptr
|
|
|
|
#include <algorithm> // Ensure <algorithm> is included
|
|
|
|
|
2024-12-30 04:25:16 +00:00
|
|
|
void RenderWindow::RenderSceneToFBO(bool *GameRunning)
|
|
|
|
{
|
|
|
|
m_RotationAngle += 0.001f; // Spin per frame
|
2024-12-25 21:44:33 +00:00
|
|
|
|
2024-12-26 00:15:18 +00:00
|
|
|
// Bind the FBO
|
2024-12-25 21:44:33 +00:00
|
|
|
m_FBO.Bind();
|
|
|
|
glViewport(0, 0, m_LastWidth, m_LastHeight);
|
|
|
|
|
|
|
|
glEnable(GL_DEPTH_TEST);
|
2024-12-25 23:01:05 +00:00
|
|
|
|
2024-12-27 01:34:34 +00:00
|
|
|
glClearColor(0.f, 0.f, 0.f, 1.f);
|
2024-12-25 21:44:33 +00:00
|
|
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
|
|
|
|
2024-12-25 23:35:38 +00:00
|
|
|
// Use our loaded shader
|
2024-12-26 00:15:18 +00:00
|
|
|
if (!m_ShaderPtr)
|
2024-12-30 04:25:16 +00:00
|
|
|
{
|
2024-12-30 06:51:58 +00:00
|
|
|
DEBUG_PRINT("[RenderWindow] Shader pointer is null. Cannot render.");
|
2024-12-30 04:25:16 +00:00
|
|
|
m_FBO.Unbind();
|
2024-12-26 00:15:18 +00:00
|
|
|
return; // Can't render without a shader
|
2024-12-30 04:25:16 +00:00
|
|
|
}
|
2024-12-25 21:44:33 +00:00
|
|
|
|
2024-12-26 00:15:18 +00:00
|
|
|
m_ShaderPtr->Use();
|
2024-12-25 21:44:33 +00:00
|
|
|
|
2024-12-26 00:15:18 +00:00
|
|
|
// Define view and projection matrices once
|
2024-12-30 04:25:16 +00:00
|
|
|
std::shared_ptr<CameraComponent> activeCamera = nullptr;
|
2024-12-25 23:35:38 +00:00
|
|
|
|
2024-12-30 04:25:16 +00:00
|
|
|
glm::mat4 view;
|
|
|
|
glm::mat4 proj;
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-30 04:25:16 +00:00
|
|
|
if (*GameRunning && g_RuntimeCameraObject)
|
|
|
|
{
|
|
|
|
activeCamera = g_RuntimeCameraObject;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ensure that an active camera is available
|
|
|
|
if (activeCamera)
|
2024-12-29 02:50:39 +00:00
|
|
|
{
|
2024-12-30 04:25:16 +00:00
|
|
|
// Obtain view and projection matrices from the active camera
|
|
|
|
view = activeCamera->GetViewMatrix();
|
|
|
|
proj = activeCamera->GetProjectionMatrix();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Fallback to default view and projection if no camera is available
|
|
|
|
view = glm::translate(glm::mat4(1.f), glm::vec3(0.f, 0.f, -5.f));
|
|
|
|
float aspect = (m_LastHeight != 0) ? (float)m_LastWidth / (float)m_LastHeight : 1.0f;
|
|
|
|
proj = glm::perspective(glm::radians(CAM_FOV), aspect, CAM_NEAR_PLAIN, CAM_FAR_PLAIN);
|
|
|
|
}
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-30 04:25:16 +00:00
|
|
|
// Iterate over each GameObject and render it
|
|
|
|
for (auto &obj : g_GameObjects)
|
|
|
|
{
|
2024-12-26 00:15:18 +00:00
|
|
|
glm::mat4 model = glm::mat4(1.f);
|
|
|
|
|
2024-12-27 01:34:34 +00:00
|
|
|
std::shared_ptr<TransformComponent> transform = obj->GetComponent<TransformComponent>();
|
|
|
|
std::shared_ptr<MeshComponent> mesh = obj->GetComponent<MeshComponent>();
|
2024-12-26 00:15:18 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
if (transform && mesh && mesh)
|
2024-12-27 01:34:34 +00:00
|
|
|
{
|
2024-12-30 04:25:16 +00:00
|
|
|
// Apply transformations
|
2024-12-27 01:34:34 +00:00
|
|
|
model = glm::translate(model, transform->position);
|
|
|
|
model = glm::rotate(model, glm::radians(transform->rotation.x), glm::vec3(1.f, 0.f, 0.f));
|
|
|
|
model = glm::rotate(model, glm::radians(transform->rotation.y), glm::vec3(0.f, 1.f, 0.f));
|
|
|
|
model = glm::rotate(model, glm::radians(transform->rotation.z), glm::vec3(0.f, 0.f, 1.f));
|
|
|
|
model = glm::scale(model, transform->scale);
|
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Compute MVP matrix
|
2024-12-27 01:34:34 +00:00
|
|
|
glm::mat4 mvp = proj * view * model;
|
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Pass MVP and Model matrices to the shader
|
|
|
|
m_ShaderPtr->SetMat4("uMVP", mvp);
|
|
|
|
m_ShaderPtr->SetMat4("uModel", model);
|
2024-12-30 04:25:16 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Iterate through each submesh
|
|
|
|
for (const auto &submesh : mesh->submeshes)
|
2024-12-30 04:25:16 +00:00
|
|
|
{
|
2024-12-31 08:40:23 +00:00
|
|
|
// Validate VAO
|
|
|
|
if (submesh.vao == 0)
|
|
|
|
{
|
|
|
|
DEBUG_PRINT("[RenderWindow] Warning: Submesh VAO is not initialized.");
|
|
|
|
continue;
|
|
|
|
}
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Update triangle count
|
|
|
|
g_GPU_Triangles_drawn_to_screen += static_cast<int>(submesh.indices.size() / 3);
|
2024-12-30 04:25:16 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Bind textures for the submesh
|
|
|
|
// Assuming the shader has uniform arrays like uTextures.texture_diffuse[32]
|
|
|
|
const int MAX_DIFFUSE = 32; // Must match the shader's MAX_DIFFUSE
|
|
|
|
int textureUnit = 0;
|
|
|
|
|
|
|
|
// Iterate through all textures and bind those with type "texture_diffuse"
|
|
|
|
for (const auto &texture : submesh.textures)
|
2024-12-30 04:25:16 +00:00
|
|
|
{
|
2024-12-31 08:40:23 +00:00
|
|
|
if (texture.type == "texture_diffuse")
|
2024-12-30 04:25:16 +00:00
|
|
|
{
|
2024-12-31 08:40:23 +00:00
|
|
|
if (textureUnit >= MAX_DIFFUSE)
|
|
|
|
{
|
|
|
|
DEBUG_PRINT("[RenderWindow] Warning: Exceeded maximum number of diffuse textures (%d) for shader.", MAX_DIFFUSE);
|
|
|
|
break; // Prevent exceeding the array bounds in the shader
|
|
|
|
}
|
2024-12-30 04:25:16 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Activate the appropriate texture unit
|
|
|
|
glActiveTexture(GL_TEXTURE0 + textureUnit);
|
|
|
|
glBindTexture(GL_TEXTURE_2D, texture.id);
|
2024-12-30 04:25:16 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Construct the uniform name dynamically (e.g., "uTextures.texture_diffuse[0]")
|
|
|
|
std::string uniformName = "uTextures.texture_diffuse[" + std::to_string(textureUnit) + "]";
|
|
|
|
m_ShaderPtr->SetInt(uniformName, textureUnit);
|
2024-12-30 04:25:16 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
textureUnit++;
|
2024-12-30 04:25:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Assign default texture to unused texture slots to prevent shader errors
|
2024-12-31 22:35:06 +00:00
|
|
|
for (int i = textureUnit; i < MAX_DIFFUSE; ++i)
|
2024-12-30 04:25:16 +00:00
|
|
|
{
|
2024-12-31 08:40:23 +00:00
|
|
|
std::string uniformName = "uTextures.texture_diffuse[" + std::to_string(i) + "]";
|
|
|
|
m_ShaderPtr->SetInt(uniformName, 0); // Assign texture unit 0 (ensure texture 0 is a valid default)
|
2024-12-30 04:25:16 +00:00
|
|
|
}
|
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Set the number of active diffuse textures
|
|
|
|
m_ShaderPtr->SetInt("uNumDiffuseTextures", textureUnit);
|
|
|
|
|
|
|
|
// Draw the submesh
|
|
|
|
glBindVertexArray(submesh.vao);
|
|
|
|
glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(submesh.indices.size()), GL_UNSIGNED_INT, nullptr);
|
|
|
|
glBindVertexArray(0);
|
2024-12-27 01:34:34 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Reset active texture to default
|
|
|
|
glActiveTexture(GL_TEXTURE0);
|
|
|
|
}
|
2024-12-27 01:34:34 +00:00
|
|
|
}
|
2024-12-26 00:15:18 +00:00
|
|
|
}
|
2024-12-25 21:44:33 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Cleanup: Unbind the shader program
|
2024-12-26 00:15:18 +00:00
|
|
|
glUseProgram(0);
|
2024-12-30 04:25:16 +00:00
|
|
|
|
2024-12-31 08:40:23 +00:00
|
|
|
// Unbind the FBO
|
2024-12-25 23:35:38 +00:00
|
|
|
m_FBO.Unbind();
|
2024-12-25 21:44:33 +00:00
|
|
|
}
|