llcylinder.cpp File Reference

Draws a cylinder using display lists for speed. More...

#include "llviewerprecompiledheaders.h"
#include "llcylinder.h"
#include "llerror.h"
#include "math.h"
#include "llmath.h"
#include "noise.h"
#include "v3math.h"
#include "llvertexbuffer.h"
#include "llgl.h"
#include "llglheaders.h"

Include dependency graph for llcylinder.cpp:

Go to the source code of this file.

Functions

U32 draw_cylinder_side (GLint slices, GLint stacks, GLfloat base_radius, GLfloat top_radius)
U32 draw_cylinder_cap (GLint slices, GLfloat base_radius, BOOL is_top)

Variables

LLCylinder gCylinder
LLCone gCone
GLUquadricObj * gQuadObj = NULL
static const GLint SLICES [] = { 30, 20, 12, 6 }
static const GLint STACKS = 2
static const GLfloat RADIUS = 0.5f
const BOOL TOP = TRUE
const BOOL BOTTOM = FALSE


Detailed Description

Draws a cylinder using display lists for speed.

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 llcylinder.cpp.


Function Documentation

U32 draw_cylinder_cap ( GLint  slices,
GLfloat  base_radius,
BOOL  is_top 
)

Definition at line 83 of file llcylinder.cpp.

References gQuadObj, and llerror.

Referenced by LLCone::drawBottom(), LLCylinder::drawBottom(), and LLCylinder::drawTop().

U32 draw_cylinder_side ( GLint  slices,
GLint  stacks,
GLfloat  base_radius,
GLfloat  top_radius 
)

Definition at line 56 of file llcylinder.cpp.

References gQuadObj, height, and llerror.

Referenced by LLCone::drawSide(), and LLCylinder::drawSide().


Variable Documentation

const BOOL BOTTOM = FALSE

Definition at line 82 of file llcylinder.cpp.

Referenced by LLCone::drawBottom(), LLCylinder::drawBottom(), LLFloaterTestImpl::LLFloaterTestImpl(), and LLNotifyBox::LLNotifyBox().

LLCone gCone

Definition at line 46 of file llcylinder.cpp.

Referenced by LLViewerWindow::initGLDefaults(), LLManipTranslate::renderArrow(), and LLViewerWindow::stopGL().

LLCylinder gCylinder

Definition at line 45 of file llcylinder.cpp.

Referenced by LLViewerJointShape::drawShape(), LLViewerWindow::initGLDefaults(), and LLViewerWindow::stopGL().

GLUquadricObj* gQuadObj = NULL

Definition at line 48 of file llcylinder.cpp.

Referenced by LLCone::cleanupGL(), LLCylinder::cleanupGL(), draw_cylinder_cap(), and draw_cylinder_side().

const GLfloat RADIUS = 0.5f [static]

Definition at line 52 of file llcylinder.cpp.

Referenced by LLCone::drawBottom(), LLCylinder::drawBottom(), LLCone::drawSide(), LLCylinder::drawSide(), LLCylinder::drawTop(), and LLVolume::sculpt().

const GLint SLICES[] = { 30, 20, 12, 6 } [static]

Definition at line 50 of file llcylinder.cpp.

Referenced by LLCone::drawBottom(), LLCylinder::drawBottom(), LLCone::drawSide(), LLCylinder::drawSide(), and LLCylinder::drawTop().

const GLint STACKS = 2 [static]

Definition at line 51 of file llcylinder.cpp.

Referenced by LLCone::drawSide(), and LLCylinder::drawSide().

const BOOL TOP = TRUE

Definition at line 81 of file llcylinder.cpp.

Referenced by LLCylinder::drawTop(), LLGroupNotifyBox::getGroupNotifyRect(), LLNotifyBox::getNotifyRect(), LLFloaterMap::LLFloaterMap(), LLFloaterTestImpl::LLFloaterTestImpl(), LLGroupNotifyBox::LLGroupNotifyBox(), and LLNotifyBox::LLNotifyBox().


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