Questions tagged [derelict3]

A collection of dynamic D bindings to C libraries, useful for multimedia and game development.

A collection of dynamic D bindings to C libraries, useful for multimedia and game development.

These bindings are no longer being maintained by the author, which have been superseded by bindbc-sdl, bindbc-opengl, and bindbc-loader.

20 questions
4
votes
1 answer

Linking to DerelictGL3 with GDC

TL;DR: How do I get from having the source for DerelictGL3 et al, to linking to it, with GDC? Detailed complaints: I have a small program written in D. (http://dlang.org) module controller; import std.stdio; import std.conv; import…
kd8azz
  • 613
  • 5
  • 21
4
votes
2 answers

glVertexAttribPointer causing Invalid Operation OpenGL error in D

I have a simple D application using DerelictGL3 and DerelictSDL2. I am trying to render a red triangle using vertex buffer objects however whenever I run glVertexAttribPointer(position, 2, GL_FLOAT, GL_FALSE, float.sizeof * 2, null);, glGetError()…
Asraelite
  • 288
  • 4
  • 12
4
votes
1 answer

dmd and gdc compiling code differently?

I am currently trying out DerelictSDL2 (a binding to the SDL2 library for D) and I've written a code that successfully loads a JPG image and displays it in a window. That is, when it's compiled with dmd. When I try with gdc (and no code…
3
votes
2 answers

Segmentation fault when using Derelict SDL

I am trying to use Derelict and D to write a simple graphics test program. When I try to do nearly anything with SDL it will seg-fault. Here is the code that is having issues: import std.stdio; import derelict.opengl3.gl3; import…
3
votes
1 answer

Derelict3 D bindings on OS X

I just want to make a little test with GLFW3 D binding. I create a new package using dub init glfw3Test Then I wrote a little test in glfw3Test\source\app.d import derelict.glfw3.glfw3; void main() { // Load the GLFW 3 library. …
Kill KRT
  • 1,101
  • 2
  • 17
  • 37
3
votes
1 answer

Cannot SDL_GL_DeleteContext in destructor

I am creating an SDL-OpenGL application in D. I am using the Derelict SDL binding to accomplish this. When I am finished running my application, I want to unload SDL. To do this I run the following function: public ~this() { …
Jeroen
  • 15,257
  • 12
  • 59
  • 102
3
votes
1 answer

Derelict3 SDL2 and OpenGL weird SIGSEGV on DerelictGL.reload()

Trying to get set with SDL and OpenGL on D. Specifically, SDL2 and OpenGL 3.3 core/forward compatible. (although I left the last two out in the example, because it breaks at the same point whether or not they're there). The equivalent to the…
Cubic
  • 14,902
  • 5
  • 47
  • 92
3
votes
1 answer

undefined reference to opEquals: Linker errors with Derelict3 Bindings to SDL2

I am trying to write a simple hello world using the Derelict3 bindings for SDL2. I am getting errors during linking that I have not seen before. module main; import derelict.sdl2.sdl; pragma(lib, "DerelictSDL2"); pragma(lib,…
YGL
  • 5,540
  • 2
  • 22
  • 19
3
votes
2 answers

D language function call with argument

I am learning D and have mostly experience in C#. Specifically I am trying to use the Derelict3 Binding to SDL2. I have been able to get some basic functionality working just fine but I have become stumped on how to create an array argument for a…
MrJolo
  • 33
  • 4
2
votes
2 answers

Access Violation Error when accessing D object from D-to-C callback

I've recently begun to dip my toes into DerelictGLFW. I have two classes, one of them a Window class, and another an InputHandler class (a event manager for window events). In my cursor position callback, I take the window user pointer and try to…
Straivers
  • 349
  • 1
  • 9
2
votes
0 answers

Building importing/linking a Derelict3 project using dub in D2

I am trying to build a D2/Derelict3 example: import std.stdio; import derelict.opengl3.gl3; import derelict.glfw3.glfw3; void main(string[] args) { DerelictGL3.load(); DerelictGLFW3.load(); if (!glfwInit()) throw new Exception("Failed to…
Frederik
  • 594
  • 3
  • 9
  • 24
2
votes
2 answers

SDL window seemingly improperly being marked 'unresponsive' by OS

I have an SDL2 windowed window accessed via Derelict 3. It is supposed to strobe black and white (not because I hate epileptics), and it does this successfully. However, after a certain period of time, Ubuntu 13.10 marks the window as…
user
  • 4,920
  • 3
  • 25
  • 38
2
votes
1 answer

Create a fake OpenGL context for sake of loading extensions

I've been playing with Derelict3&glfw to use OpenGL in D according to this, if I want to use extensions, I need to create a context first, and this is done by creating a window with glfw and set it as the current context. After the context is…
Idan Arye
  • 12,402
  • 5
  • 49
  • 68
1
vote
1 answer

DerelictGL3 `glCreateShader` Access Violation

Introduction I am attempting to create an OpenGL shader in D using Derelict's OpenGL binding. During the making of a quick test application to see if I could put everything together, it worked just fine, but when I started organizing things …
D. Ataro
  • 1,711
  • 17
  • 38
1
vote
2 answers

Having trouble glShaderSource( GLuint,GLsizei,const( GLchar* )*,const( GLint )* ) from D

Language: D Library: DerelictGL3 I'm trying to call glShaderSource( GLuint,GLsizei,const( GLchar* )*,const( GLint )* ) from D I have the shader source in a string and the shader id for the first argument. What I'm having problems with is the…
1
2