llsphere.cpp File Reference

implementation of the LLSphere class. More...

#include "llviewerprecompiledheaders.h"
#include "llsphere.h"
#include "llerror.h"
#include "llvertexbuffer.h"
#include "llglheaders.h"

Include dependency graph for llsphere.cpp:

Go to the source code of this file.

Functions

void drawSolidSphere (GLdouble radius, GLint slices, GLint stacks)
void lat2xyz (LLVector3 *result, F32 lat, F32 lon)
void lat2xyz_rad (LLVector3 *result, F32 lat, F32 lon)

Variables

GLUquadricObj * gQuadObj2 = NULL
LLSphere gSphere


Detailed Description

implementation of the LLSphere class.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llsphere.cpp.


Function Documentation

void drawSolidSphere ( GLdouble  radius,
GLint  slices,
GLint  stacks 
)

Definition at line 47 of file llsphere.cpp.

References gQuadObj2, llendl, and llwarns.

Referenced by LLSphere::prerender().

void lat2xyz ( LLVector3 result,
F32  lat,
F32  lon 
)

Definition at line 71 of file llsphere.cpp.

References DEG_TO_RAD, f, LLVector3::mV, r, VX, VY, and VZ.

void lat2xyz_rad ( LLVector3 result,
F32  lat,
F32  lon 
)

Definition at line 92 of file llsphere.cpp.

References f, F_PI_BY_TWO, LLVector3::mV, r, VX, VY, and VZ.


Variable Documentation

GLUquadricObj* gQuadObj2 = NULL

Definition at line 42 of file llsphere.cpp.

Referenced by LLSphere::cleanupGL(), and drawSolidSphere().

LLSphere gSphere

Definition at line 43 of file llsphere.cpp.

Referenced by LLViewerJointShape::drawShape(), LLViewerWindow::initGLDefaults(), LLViewerJointCollisionVolume::render(), LLHUDEffectBeam::render(), LLHUDConnector::render(), LLVOCloth::render(), LLAgent::renderAutoPilotTarget(), LLViewerWindow::renderSelections(), and LLViewerWindow::stopGL().


Generated on Thu Jul 1 06:10:40 2010 for Second Life Viewer by  doxygen 1.4.7