Raylib Wrapper Help
#16
Quote:INFO: Initializing raylib 4.2
INFO: Supported raylib modules:
INFO:    > rcore:..... loaded (mandatory)
INFO:    > rlgl:...... loaded (mandatory)
INFO:    > rshapes:... loaded (optional)
INFO:    > rtextures:. loaded (optional)
INFO:    > rtext:..... loaded (optional)
INFO:    > rmodels:... loaded (optional)
INFO:    > raudio:.... loaded (optional)
INFO: DISPLAY: Device initialized successfully
INFO:    > Display size: 2560 x 1440
INFO:    > Screen size:  800 x 450
INFO:    > Render size:  800 x 450
INFO:    > Viewport offsets: 0, 0
INFO: GLAD: OpenGL extensions loaded successfully
INFO: GL: Supported extensions count: 401
INFO: GL: OpenGL device information:
INFO:    > Vendor:  NVIDIA Corporation
INFO:    > Renderer: NVIDIA GeForce RTX 3090/PCIe/SSE2
INFO:    > Version:  3.3.0 NVIDIA 516.94
INFO:    > GLSL:    3.30 NVIDIA via Cg compiler
INFO: GL: DXT compressed textures supported
INFO: GL: ETC2/EAC compressed textures supported
INFO: TEXTURE: [ID 1] Texture loaded successfully (1x1 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 1] Default texture loaded successfully
INFO: SHADER: [ID 1] Vertex shader compiled successfully
INFO: SHADER: [ID 2] Fragment shader compiled successfully
INFO: SHADER: [ID 3] Program shader loaded successfully
INFO: SHADER: [ID 3] Default shader loaded successfully
INFO: RLGL: Render batch vertex buffers loaded successfully in RAM (CPU)
INFO: RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU)
INFO: RLGL: Default OpenGL state initialized successfully
INFO: TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
INFO: FONT: Default font loaded successfully (224 glyphs)
WARNING: FILEIO: [▲▓a♥<] Failed to open file
0        0
INFO: TEXTURE: [ID 59170876] Unloaded texture data from VRAM (GPU)
INFO: TEXTURE: [ID 2] Unloaded texture data from VRAM (GPU)
INFO: SHADER: [ID 3] Default shader unloaded successfully
INFO: TEXTURE: [ID 1] Default texture unloaded successfully
INFO: Window closed successfully
So, for some reason, the texture refuses to load. You must use LoadTexture only after first initializing the window with InitWindow. I've done that. However, it still refuses to load. When I look up the error about the failure to open the file, I'm told it is because the texture either doesn't exist or I'm loading it before I've called InitWindow. They're wrong, of course. Perhaps the OpenGL side of QB64 is causing an issue with trying to use Raylib, which also uses OpenGL.

I tried passing a Unicode string but the program crashed. So, I'll have to do some more digging to find compatible strings for this library.
Ask me about Windows API and maybe some Linux stuff
Reply


Messages In This Thread
Raylib Wrapper Help - by LeftyG - 08-27-2022, 07:44 PM
RE: Raylib Wrapper Help - by SMcNeill - 08-27-2022, 09:33 PM
RE: Raylib Wrapper Help - by LeftyG - 08-27-2022, 09:39 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-29-2022, 03:44 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-29-2022, 07:13 PM
RE: Raylib Wrapper Help - by LeftyG - 08-29-2022, 09:29 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 02:43 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 03:05 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 05:00 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 05:25 AM
RE: Raylib Wrapper Help - by TempodiBasic - 08-30-2022, 05:07 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 05:37 AM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 05:49 AM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:07 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:12 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 12:45 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 04:49 PM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 06:38 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 06:49 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 07:21 PM
RE: Raylib Wrapper Help - by SpriggsySpriggs - 08-30-2022, 07:43 PM
RE: Raylib Wrapper Help - by LeftyG - 08-30-2022, 08:55 PM



Users browsing this thread: 10 Guest(s)