Function:ns2vplanetx

From S2PLOT

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:50, 7 January 2009
S2plot admin (Talk | contribs)

← Previous diff
Revision as of 03:08, 27 January 2009
S2plot admin (Talk | contribs)

Next diff →
Line 10: Line 10:
==Description== ==Description==
-Draw a planet, which is a textured sphere whose texture can be "slid" around the planet, and the planet then rotated about an arbitrary axis.+Draw a planet, which is a textured sphere whose texture can be "slid" around the planet, and the planet then rotated about an arbitrary axis. Texture phase is in the range [0..1], while rotation angle is in degrees.
==See Also== ==See Also==

Revision as of 03:08, 27 January 2009

ns2vplanetx

Draw a planet - vector input.

Prototype

void ns2vplanetx(XYZ iP, float ir, COLOUR icol, unsigned int itextureid, 
                 float texture_phase, XYZ axis, float rotation);

Description

Draw a planet, which is a textured sphere whose texture can be "slid" around the planet, and the planet then rotated about an arbitrary axis. Texture phase is in the range [0..1], while rotation angle is in degrees.

See Also

ns2vplanettDraw a planet - vector input.
ns2vsphere Draw a sphere, with a given centre, radius and colour - vector input.
ns2spheretDraw a textured sphere, with given centre, radius, colour and texture filename
ns2vspheretDraw a textured sphere, with given centre, radius, colour and texture filename - vector input.
ns2spherexDraw a textured sphere, with given centre, radius, colour and texture ID
ns2vspherexDraw a textured sphere, with given centre, radius, colour and texture ID - vector input.
ns2sphereDraw a sphere.

Code Example

Back to S2PLOT function list.


Personal tools