rhythmic-wolf-50922
05/01/2023, 9:33 PMlime display windows -debug
in your project. it will show which Haxe compiler arguments are generated. it will include the path to Lime that is being used. I assume it won't be your fork's path.little-oxygen-79174
05/01/2023, 9:35 PMhttps://cdn.discordapp.com/attachments/769686258049351722/1102709993192554546/image.png▾
rhythmic-wolf-50922
05/01/2023, 9:41 PMlittle-oxygen-79174
05/01/2023, 9:42 PM.haxelib
directory to see if that was the problem and it persistslittle-oxygen-79174
05/01/2023, 9:42 PMhttps://cdn.discordapp.com/attachments/769686258049351722/1102711638005649549/image.png▾
little-oxygen-79174
05/01/2023, 9:43 PMhttps://cdn.discordapp.com/attachments/769686258049351722/1102711874769928323/image.png▾
little-oxygen-79174
05/01/2023, 9:43 PMrhythmic-wolf-50922
05/01/2023, 9:44 PMgit clone
with haxelib dev
instead of haxelib git
, so there's another difference from how I do itlittle-oxygen-79174
05/01/2023, 9:46 PMhaxelib run lime create Lime-HelloWorld
)little-oxygen-79174
05/01/2023, 9:46 PMlittle-oxygen-79174
05/01/2023, 9:47 PMlittle-oxygen-79174
05/01/2023, 9:47 PMtall-teacher-57409
05/04/2023, 1:26 PMglGenBuffers
in lime?able-action-74275
05/04/2023, 1:37 PMc
int lime_gl_create_buffer () {
GLuint id = 0;
glGenBuffers (1, &id);
return id;
}
so it looks like you can create individual buffers with gl.createBuffer ();
tall-teacher-57409
05/04/2023, 1:37 PMtall-teacher-57409
05/04/2023, 1:41 PMcpp
unsigned int VBO;
glGenBuffers(1, &VBO);
how would that look like?able-action-74275
05/04/2023, 1:42 PMable-action-74275
05/04/2023, 1:43 PMhx
var vbo = gl.createBuffer();
tall-teacher-57409
05/04/2023, 1:43 PMtall-teacher-57409
05/04/2023, 1:54 PMable-action-74275
05/04/2023, 1:55 PMable-action-74275
05/04/2023, 1:55 PMtall-teacher-57409
05/04/2023, 1:55 PMtall-teacher-57409
05/04/2023, 1:55 PMtall-teacher-57409
05/04/2023, 1:56 PMable-action-74275
05/04/2023, 1:56 PMtall-teacher-57409
05/04/2023, 2:19 PMhx
var gl = context.webgl;
var vbo = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, vbo);
gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);
var shader_src = "
#version 330 core\n
layout (location = 0) in vec3 aPos;\n
void main()\n
{\n
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);\n
}\n
";
var shader = gl.createShader(gl.VERTEX_SHADER);
gl.shaderSource(shader, shader_src);
gl.compileShader(shader);
Source/Main.hx:21: characters 36-44 : Array<Float> should be lime.utils.ArrayBufferView
Source/Main.hx:21: characters 36-44 : ... For function argument 'srcData'
do I need to change my Array to ArrayBufferView (srcData is annotated as Dynamic though)able-action-74275
05/04/2023, 2:21 PMnew Float32Array (vertices)
tall-teacher-57409
05/04/2023, 2:22 PM