30 questions
0
votes
1
answer
93
views
SDL3 + OpenGL in c++ is thowing empty SDL_Init erros when making a window in Wayland [duplicate]
I have installed the packages that I need (as far as I know), and the window throws an empty error when I run it.
Output is:
/home/bence/Programming/cpp/game1/cmake-build-debug/game1
SDL_Init Error:
...
1
vote
0
answers
104
views
Unable to render sprites in batches / instances using SDL3 GPU API and Odin. SSBO is not available to shader
I am new to graphics in general, so I am trying to learn from others.
After drawing a triangle, a quad and then a sprite on top, I have been trying to get a batch of them on screen using instancing.
...
2
votes
1
answer
267
views
Modify a SDL3 texture using a framebuffer?
I'm trying to modify a texture pixel by pixel using a framebuffer, In my code I'm trying to fill the texture with white pixels, nothing seems to work.
#include <iostream>
#include <SDL3/SDL....
0
votes
1
answer
233
views
Imgui can not find SDL3/SDL.h file
I am trying to learn imgui by first create a project using its library. But, first I wanted to run one of the examples found in the github repository. I am not using an IDE, only my mac terminal. ...
-1
votes
1
answer
178
views
Encountering PCH allocation failure when compile with mingw64+cmake(Ninja)+sdl3
Question:
In which case the "PCH allocation failure" is going happened even the main memory is enough.
What is the address in "MapViewOfFileEx: Attempt to access invalid address."....
0
votes
1
answer
284
views
How to make config.cmake file of SDL3 and ImGui
Currently I'm trying to add SDL3 and ImGui to my 2D game engine's config.cmake file.
I would like to use that library as below from external project.
find_package(MyEngine REQUIRED)
add_executable(...
-2
votes
1
answer
87
views
Pointer saves correct address to a file but reads back as 0x0 [closed]
I'm writing a basic tile map editor in C and SDL3. I have two 2d arrays of a user defined data type
#define GRID_WIDTH 38
#define GRID_HEIGHT 28
typedef struct
{
bool ...
0
votes
0
answers
122
views
How do I disable auto debugging (if that's somthing) in my vscode while I run C++ code?
When I execute the Makefile, it runs properly with no problem but as I close the SDL3(game) window, It throws a pop-up saying "launch: program '/home/mayank/Documents/Projects/Game/main' does not ...
0
votes
0
answers
148
views
SDL_GL_CreateContext() fails without an error message
I'm building an OpenGL 4.6 application using SDL3 and GLAD, compiled with g++:
// g++ -Wall -Ofast main.cpp include/glad/glad.c -Iinclude/SDL3 -Linclude/SDL3 -lSDL3 -lopengl32 -o build/program
#define ...
13
votes
1
answer
1k
views
SDL_Init() fails without returning an error?
When I try to execute this SDL3 program:
// g++ -Wall -Ofast main.cpp -Iinclude -Iinclude/SDL3 -Linclude/SDL3 -lSDL3 -o build/program
#define SDL_MAIN_HANDLED
#include <iostream>
#include <...
3
votes
1
answer
114
views
Square distortion during window resizing problem
I tried to make a square that maintains its size and aspect ratio during window resizing using SDL3 and SDL_SetRenderLogicalPresentation() with the SDL_LOGICAL_PRESENTATION_LETTERBOX mode:
import sdl3
...
0
votes
0
answers
639
views
How to set SDL3.dll for CMake project?
I copied a SDL3 tutorial CMake project from:
https://glusoft.com/sdl3-tutorials/install-sdl3-windows/
I did everything as the tutorial showed, except I downloaded the SDL3 source code from Git and ...
13
votes
0
answers
673
views
Forcing non-exclusive borderless fullscreen with SDL3 + OpenGL on Windows 11
Creating a borderless OpenGL window with SDL3 on Windows at the native display resolution results in the window unexpectedly switching to an exclusive fullscreen mode.
This happens specifically after ...
0
votes
0
answers
312
views
Why are my SDL textures not being rendered onscreen?
I am working with SDL3 and I am encountering an issue with rendering textures. I am able to create the textures, but they don't show up on the screen when I try to render them.
Here's what I'm trying ...
1
vote
0
answers
70
views
SDL_CreateTextureFromSurface() from purego-sdl3 Go binding returns nil
github.com/jupiterrider/purego-sdl3
I am having difficulty in getting the following 'Hello World' example to run, and am wondering what I have done wrong:
package main
import (
"github.com/...