bulky-insurance-39338
05/04/2023, 3:29 PMlayout
....bulky-insurance-39338
05/04/2023, 3:31 PMtall-teacher-57409
05/04/2023, 3:32 PMtall-teacher-57409
05/04/2023, 3:32 PMbulky-insurance-39338
05/04/2023, 3:33 PMin vec3 aPos;
bulky-insurance-39338
05/04/2023, 3:33 PMin
prefix!)tall-teacher-57409
05/04/2023, 3:36 PMhttps://cdn.discordapp.com/attachments/769686258049351722/1103706759589273620/image.png▾
tall-teacher-57409
05/04/2023, 3:37 PMtall-teacher-57409
05/04/2023, 3:41 PMtall-teacher-57409
05/04/2023, 3:45 PMcpp
sizeof(vertices)
?bulky-insurance-39338
05/04/2023, 3:50 PMgl.drawArrays()
?bulky-insurance-39338
05/04/2023, 3:51 PMdrawElement
?tall-teacher-57409
05/04/2023, 3:51 PMbulky-insurance-39338
05/04/2023, 3:51 PMtall-teacher-57409
05/04/2023, 3:51 PMbulky-insurance-39338
05/04/2023, 3:52 PM* 4
tall-teacher-57409
05/04/2023, 3:52 PMvar vertices:Array<Float> = [-0.5, -0.5, 0.0, 0.5, -0.5, 0.0, 0.0, 0.5, 0.0];
tall-teacher-57409
05/04/2023, 3:52 PMbulky-insurance-39338
05/04/2023, 3:52 PMtall-teacher-57409
05/04/2023, 3:53 PMtall-teacher-57409
05/04/2023, 3:54 PMtall-teacher-57409
05/04/2023, 3:54 PMtall-teacher-57409
05/04/2023, 3:54 PMbulky-insurance-39338
05/04/2023, 3:55 PMvertices.length
bulky-insurance-39338
05/04/2023, 3:56 PMgl.ARRAY_BUFFER
there)tall-teacher-57409
05/04/2023, 3:58 PMbulky-insurance-39338
05/04/2023, 3:58 PMbulky-insurance-39338
05/04/2023, 3:59 PMbulky-insurance-39338
05/04/2023, 4:01 PMdraw
the bufferdata by array-drawing there you need to give the amount of vertices ( so 3 for your triangle )tall-teacher-57409
05/04/2023, 4:01 PM