Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn OpenGL

You're reading from   Learn OpenGL Beginner's guide to 3D rendering and game development with OpenGL and C++

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781789340365
Length 208 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Frahaan Hussain Frahaan Hussain
Author Profile Icon Frahaan Hussain
Frahaan Hussain
Arrow right icon
View More author details
Toc

Transformations using GLM

We'll be looking at making transformations to our shape and the texture applied to it. To do the transformations, we'll be using the OpenGL Mathematics library that is GLM. For transformations, we need to use vectors and matrices, and GLM handles a lot of that in the backend for us. All we have to do is call the correct method (for example, translate or rotate), and it'll do the appropriate matrices and vector transformations for us.

It is recommended that you go to learnopengl.com and open.gl. These sites have got some great resources that showcase all the different vectors and matrices and how to use them, and it goes into more depth about the mathematics behind it. So, if you're interested, you should definitely visit these sites.
...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime