OpenGL 3D Game Tutorial 2: VAOs and VBOs

ThinMatrix
ThinMatrix
304.1 هزار بار بازدید - 10 سال پیش - LWJGL tutorial series on how
LWJGL tutorial series on how to create a 3D Java game with OpenGL!

This week we learn how to render a model using VAOs and VBOs.

Here are the vertices that we used:

 float[] vertices = {
   -0.5f, 0.5f, 0f,
   -0.5f, -0.5f, 0f,
   0.5f, -0.5f, 0f,
   0.5f, -0.5f, 0f,
   0.5f, 0.5f, 0f,
   -0.5f, 0.5f, 0f
 };

Full code available here: https://github.com/TheThinMatrix/Open...
LWJGL Wiki: http://lwjgl.org/wiki/index.php?title...


Support the series on Patreon: Patreon: thinmatrix

Facebook Page: Facebook: thinmatrix
Tumblr: Tumblr: thinmatrix
Instagram: Instagram: thin_matrix
Twitter: Twitter: ThinMatrix
Check out my game on IndieDB: http://www.indiedb.com/games/equilinox
10 سال پیش در تاریخ 1393/05/11 منتشر شده است.
304,115 بـار بازدید شده
... بیشتر