Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Javatpoint Logo
Javatpoint Logo

JOGL Scaling

In JOGL, Scaling is used to either increase or decrease the size of an object. It manipulates the physical dimensions of an object. Thus, through scaling an object can be stretched or shrink from any of its axis.

To scale an object the following syntax is used:

Here, glScalef() method is provided by GLMatrixFunc interface with the parameters that represents the dimensions.

JOGL Scaling Example

In this example, we will diminished the dimensions of polygon.

Output:

JOGL Scaling Output
JOGL Scaling Output 1
Next TopicJOGL Coloring





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA