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
Building Android UIs with Custom Views

You're reading from   Building Android UIs with Custom Views Build amazing custom user interfaces with Android custom views

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781785882869
Length 294 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Raimon Ràfols Montane Raimon Ràfols Montane
Author Profile Icon Raimon Ràfols Montane
Raimon Ràfols Montane
Arrow right icon
View More author details
Toc

Drawing geometry

So far, we've seen how to set up our OpenGL renderer and draw some very basic geometry. But, as you can imagine, we can do a lot more with OpenGL. In this section we'll see how to do some more complex operations and how to load geometry defined using an external tool. Sometimes, it might come in useful to define the geometry using code, but most of the time, and especially if the geometry is very complex, it'll be designed and created using a 3D modeling tool. Knowing how we can import that geometry will definitely come in very handy for our projects.

Adding volume

In our previous example, we've seen how to draw a quad with one single color, but what about if each vertex has a completely...

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