You just taught me in 7 minutes what I struggled to grasp for half a year. Thank you.
@ayodeledavidoluwatobi67604 жыл бұрын
THANKS ALOT..... The concept is more clear to me now
@inzomnia10011 жыл бұрын
Really enjoy these tutorial
@JamieKingCS11 жыл бұрын
Thanks. Share with your graphics buddies.
@srinathkumar14528 жыл бұрын
So glad I found your videos. Thanks a lot
@Lynxdom7 жыл бұрын
Your videos are wonderful! Thank you!
@androidpronet4 жыл бұрын
You are the best really ❤️
@maticmale41839 жыл бұрын
Great videos. Thank you!
@abdlwahdsa11 жыл бұрын
Thanks for the effort. :)
@JamieKingCS11 жыл бұрын
And thank you!
@koungmeng5 жыл бұрын
9:35 saved me!!! i switched the layout of the vertex attribute and i put the position at the 1 index and it all mess up and turn black. And i watch this video and found out that opengl think the 0 index is the position. so i need to write shader to tell opengl
@my0punk5354 жыл бұрын
I wanted to ask but, how does OpenGL know to that the element array buffer is pointing to indices in the vertex buffer?
@TheEternalHermit11 жыл бұрын
How come we don't want to use sizeof(float)? Would sizeof(GLfloat) be better or is sizeof() no good in general? Or is it best to just put in the actual number?
@reishin434610 жыл бұрын
First of, never would it be better to put in actual number. float today means 32bit but maybe on day in future it will mean 64bit and so on.. (for example int in the old days was 16bit) GLfloat is for a similar purpose, it's a portability deign. This way the GL library can make sure the float you use is a 32bit float, even say when you switch to a 64bit compiler.
@derf60607 жыл бұрын
GLfloat is simply a type def for float so you can use either or.
@ghostbusterz9 жыл бұрын
Shouldn't it be sizeof(GLfloat) instead of sizeof(float)?
@JamieKingCS9 жыл бұрын
+ghostbusterz Yep! Good catch!
@pranaykarani44659 жыл бұрын
+ghostbusterz Not needed actually, since GLfloat is just typdef to actual float. /* in glew.h */ typedef float GLfloat; Seems deceptive and stupid, but i guess its something related to support for different platforms/compliers.
@JamieKingCS9 жыл бұрын
Pranay Karani If the typedef changed in different versions for whatever reason, my code would break. sizeof(Glfloat) is more robust.
@pranaykarani44659 жыл бұрын
+Jamie King hmm.. makes sense.
@KadiNamamato7 жыл бұрын
why stride was zero before if there 2 floats from begging of first to beginning of second point? point = { +0.0f , +0.0f, //first +0.0f, +0.0f, // second };
@JamieKingCS7 жыл бұрын
If you only have one attribute that is tightly packed, no stride necessary. Corner case. Weird I know.
@KadiNamamato7 жыл бұрын
WOW, thanks for quick reply. I was still watching it. I understood it. Great tutorials, by the way.