Программы на C++. Форум разработчиков
-
Anonymous
Программа GLSL сбой при попытке включить текстурированный фон
Сообщение
Anonymous »
Я отображал анимацию: < /p>
Код: Выделить всё
#include
#include
#include
#include
#include
#include
#include
// Including stb_image for image loading
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
int WIDTH = 1920;
int HEIGHT = 1080;
std::string loadShaderSource(const char* filepath) {
std::ifstream file(filepath);
if (!file.is_open()) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79672420/glsl-program-crashing-when-attempting-to-include-a-textured-background[/url]
1750353799
Anonymous
Я отображал анимацию: < /p>
[code]#include
#include
#include
#include
#include
#include
#include
// Including stb_image for image loading
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
int WIDTH = 1920;
int HEIGHT = 1080;
std::string loadShaderSource(const char* filepath) {
std::ifstream file(filepath);
if (!file.is_open()) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79672420/glsl-program-crashing-when-attempting-to-include-a-textured-background[/url]