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
0
votes
1 answer

glxBadDrawable when using bgfx

When using the following BGFX code: #include "GLFW/glfw3.h" #include int main() { glfwInit(); GLFWwindow* window = glfwCreateWindow(800, 600, "Hello, bgfx!", NULL, NULL); bgfx::Init bgfxInit; bgfxInit.type =…
0
votes
0 answers

Mesh rendering issue with BGFX

Dislaimer : this is a learning project, I'm trying to learn both c++ and 3d rendering with opengl :) I've setup a project with BGFX and GLFW, managed to initalize both and render basic shapes to the screen. I now wanted to load arbitraty Wavefront…
JulienElM
  • 1
  • 1
0
votes
0 answers

Trying to get BGFX to build for Android

We're trying to get BGFX to build for Android, following the guide here: https://github.com/Nodrev/bgfx-android-activity as recommended on the BGFX main site. However, this repository was last updated 3+ years ago, and since then there have been…
0
votes
1 answer

BGFX ignore shader

I'm trying to code some game engine using Java, LWJGL and bgfx but have a problem with shaders. Currently I use OpenGL 2.1 backend. For some reason bgfx rollbacks to the default shader program. I'm using very simple shader and it compiles without…
0
votes
1 answer

Open in mode fullscreen with harfang's RenderInit()

I'm trying to open a screen in fullscreen mode. My understanding is that RenderInit should be passed a specific flag:. RenderInit(width: int, height: int, reset_flags: ResetFlags) ...but ResetFlags (an emum ?) doesn't seem to mention anything…
user19167234
0
votes
0 answers

Trouble building BGFX on Windows w/ MinGW

Trying to build bgfx. Following the documentation for building it, I run make mingw-gcc. This, originally resulted in Set MINGW environment variable & make.exe": *** [mingw-gcc-debug32] Error 127 so I set the MINGW environment variable, and this got…
Ferrixx
  • 3
  • 1
0
votes
0 answers

glfwGetFrameBufferSize crashes program with access violation

I've been tryna write a renderer using BGFX, and I've set up a method to get the window width, and height - from my window class that wraps GLFWwindow*; Here is window.h: #ifndef WINDOW_H #define WINDOW_H #include #include…
Moosa
  • 63
  • 5
0
votes
1 answer

Hiding mouse cursor

I am using bgfx in c99 to experiment with game dev / game engine dev, so I need to hide my cursor using Windows.h / WinUser.h However even if I use ShowCursor(false), SetCursor(NULL) the cursor will still appear on screen. None of the solutions I…
Edorion
  • 13
  • 3
0
votes
0 answers

Rendering an purple window in arch linux using bgfx doesnot work

I am trying to create make a purple window using glfw window library and with bgfx C++ on arch linux like below: but it gives out the error: X Error of failed request: GLXBadDrawable Major opcode of failed request: 152 (GLX) Minor opcode of…
anuj
  • 71
  • 5
0
votes
1 answer

BGFX and double buffering

Does BGFX internally double buffer everything? Or is this the application programmer's responsibility? All the BGFX examples that render-off screen don't seem create double the buffers. Would I need to call createFrameBuffer() twice, once for front…
Bram
  • 7,440
  • 3
  • 52
  • 94
0
votes
1 answer

Render in bgfx without shader?

Is it possible to render without loading a vertex or fragment shader in bgfx? Maybe this would effectively just be a default shader. The very first example to have any geometry also has 1 or 2 lines of code simple shaders that do little more than…
Lucas Walter
  • 942
  • 3
  • 10
  • 23
-1
votes
1 answer

Copying data to transient vertex buffer in bgfx causing SIGSEGV

I'm trying to port an bgfx application I wrote in C++ to Rust using bgfx-rs. Everything works great, until I try to copy some vertex data from the application to an transient vertex buffer. let vertices: [f32; 16] = [ 0.0f32, 0.0f32, …
Constantin
  • 8,721
  • 13
  • 75
  • 126
-2
votes
1 answer

Error building BGFX on windows for mingw-gcc

I am trying to build bgfx on windows 64-bit with mingw-gcc and not Visual Studio. While trying to build I got errors I tried to build the bgfx library with make mingw-gcc-debug64 and I got errors while running the command. I got the following…
aravioli
  • 1
  • 1
1
2