Questions tagged [bgfx]

bgfx is a cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

bgfx is a cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

28 questions
3
votes
0 answers

Error of failed request: GLXBadDrawable (C++ bgfx)

I am trying to make a purple window with glfw and bgfx as just a starting point for my game engine but when launching the binary it throws me an error. I am trying to create the purple window as shown in the image down below: I am using cmake for…
anuj
  • 71
  • 5
3
votes
1 answer

Having trouble initializing bgfx (with an sdl2 window)

I'm attempting to create a window using SDL2 and initialize BGFX to use it. My current test is just to set the window to purple using a clear color. I tried creating a window using CreateWindowEx as well, and was also unable to update the window…
KiraBox
  • 69
  • 1
  • 10
3
votes
1 answer

correctly setup bgfx (and project structure)

So, I've got a c++ project where i want to visualize stuff (in realtime), so i was looking for a rendering engine, and found bgfx. I don't write often c++ stuff, and using thirdparty projects seems unbelievable laborious, but maybe i just do…
Soraphis
  • 706
  • 7
  • 26
2
votes
0 answers

bx.h (bgfx header) is defining a variable with the same name as an x.h define

I'm having an issue building a project running bgfx with SDL2. I'm on Linux using X11. Here's all the libraries I'm including: #include #include #include #include #include #include…
jemhop
  • 51
  • 3
2
votes
0 answers

C++ bgfx file wont compile in fedora 35

I am trying to make a purple window with glfw and bgfx as just a starting point for my game engine but the file wont compile. I am using the g++ compiler for it. I just learning bgfx since yesterday and don't know what to do. The compiler statement…
anuj
  • 71
  • 5
2
votes
1 answer

bgfx shared library "undefined symbol: XLockDisplay" from .NET Core on Linux

I'm trying to write a simple bgfx application in C# with .NET Core. It works fine on Windows, but it fails at runtime on Linux with the following error: /usr/bin/dotnet: symbol lookup error:…
Fabio Iotti
  • 1,480
  • 1
  • 16
  • 20
1
vote
1 answer

bgfx not setting background correctly

I am having a problem with bgfx graphics framework. This problem causes nothing to be rendered, and the background isn't being set to the correct color. #include #include #include #define…
Cake
  • 37
  • 6
1
vote
2 answers

#error "BX_CONFIG_DEBUG must be defined in build script!" on Visual Studio, BGFX

I am using Visual Studio 2022. I would like to build a project using BJFX. It is my first BGFX project but I have some issues in the first stage. I have this error message in the console #error "BX_CONFIG_DEBUG must be defined in build…
Smith14
  • 13
  • 4
1
vote
0 answers

Texture showing up as black and red lines in BGFX

I'm new to bgfx and have been trying to render a textured cube to the screen for quite a while how. But instead of having the texture I specified it's covered in red and black lines. Here is my fragment shader code, I don't see anything wrong with…
Taxen99
  • 49
  • 5
1
vote
0 answers

EGL vs OpenGL context

I use BGFX framework for rendering in an application. I'm on Linux with an nvidia graphics card, and the BGFX build I use uses OpenGL as a backend (don't want to switch to Vulkan backend). Everything worked fine, but one new feature requires me to…
Broothy
  • 659
  • 5
  • 20
1
vote
1 answer

BGFX shader compilation using shaderc

I'm trying to compile the following shader from this tutorial: $input a_position, a_color0 $output v_color0 #include void main() { gl_Position = mul(u_modelViewProj, vec4(a_position, 1.0) ); v_color0 = a_color0; } I am…
Seppukki
  • 563
  • 2
  • 8
  • 24
1
vote
1 answer

LNK2001 unresolved external symbol __imp_calloc when attempting to run a basic program with glfw and bgfx

I am trying to create an application with GLFW and BGFX but I am getting these errors: LNK2019 unresolved external symbol __imp__stdio_common_vsscanf referenced in function sscanf LNK2019 unresolved external symbol __imp_strspn referenced in…
anom1
  • 53
  • 1
  • 11
0
votes
1 answer

Assimp, BGFX and C++ trouble matching vertices to indices

I have been trying to make a generic model class in c++ that can use any underlying data type, defined by it's BGFX layout. To do this I have been using assimp to import the model data. Unfortunately I have been finding that the indices and the…
0
votes
0 answers

BGFX shaders fail to be created

I was trying to make custom shaders for bgfx that are already compiled. This bug allows the shaders to be read in, but then the shaders don't function properly and not draw anything to the screen. Read and load Shader std::string ReadFile(const…
Cake
  • 37
  • 6
0
votes
1 answer

BGFX setWindowSize Issue

Trying to set window size using native/common functions via entry::setWindowSize, but somehow the window size is still setting it to 1280x720. The buffer size was successfully set to the preferred size (800x600) though as per screenshot…
1
2