Conversation
cgo and purego names now match
|
for me example compiles correctly on current main branch, IDE shows no errors/missing references. @Timethor Are you sure you have the correct raylib-go version reference in your project? require (
github.com/gen2brain/raylib-go/raylib v0.0.0-20260217065004-2c5f1b24d85e
)For example in my project I'm using older one ( |
|
Hey, I'm sure. I specifically pulled the latest master commit to play with these features. Like I mentioned, without the See here for cgo: https://github.com/gen2brain/raylib-go/pull/537/changes#diff-afd1b5782309e415e7192127a24e5553d4d69cb448cce66f8ac403447c2d9d86R634-R643 AFAIK, there shouldn't be a disparity between the two names, they're both calling a function called |
|
I see the discrepancy between cgo and purego now, thanks for the links! |
|
Looks good in terms of resolving discrepancy. quadIndices := []uint16{
0, 2, 1, // first triangle (CCW in NDC)
0, 3, 2, // second triangle (CCW in NDC)
}
quadIBO := rl.LoadVertexBufferElements(quadIndices, false)So instead of removing Everything else introduced with #537 seems to be in sync across pugrego and cgo. |
|
Holy, I looked at RLAPI unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic);
|




I was exploring the latest rlgl bindings added and the
LoadVertexBufferElementscalls from both examples were not found on compilation, despite my IDE saying it was valid. Did some digging to find the name disparity. Removing thescompiled but made the IDE syntax checking upset. Hopefully this is the right fix.