Good ol' OpenGL D-C interfacing. :(
Mineko
uminekorox at gmail.com
Sat Jan 25 20:18:16 PST 2014
On Sunday, 26 January 2014 at 03:39:37 UTC, TheFlyingFiddle wrote:
> On Saturday, 25 January 2014 at 23:28:07 UTC, Mineko wrote:
>> Alright.. For the record, I've been searching on how to fix
>> this for 2 hours now, so yeah.
>>
>> Anyway, here's the issue, and it's probably half OpenGL being
>> well.. OpenGL, and the other half being D-C interfacing.
>>
>> Point is, I'm trying to draw a triangle with a custom Triangle
>> class I made, and I'm having issues, relevant code is here:
>> https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/scene.d
>>
>> https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/graphics/primitives.d
>>
>> https://github.com/MinekoRox/Breaker-Engine/blob/master/res/shaders/testShader.glsl
>>
>> I assume this is probably me messing up with arrays and
>> sizing, but I've done what I can as far as that goes so..
>> Maybe one of you know what to do.
>
>
> Your init and finalize methods in primitives.d does not work.
> You need to send the vao, points_vbo and colors_vbo by ref.
Thank you, that was exactly the problem.
More information about the Digitalmars-d-learn
mailing list