#include "llviewerprecompiledheaders.h"
#include "llviewercamera.h"
#include <iomanip>
#include "llquaternion.h"
#include "llagent.h"
#include "llviewercontrol.h"
#include "lldrawable.h"
#include "llface.h"
#include "llgl.h"
#include "llglheaders.h"
#include "llviewerobjectlist.h"
#include "llviewerregion.h"
#include "llviewerwindow.h"
#include "llvovolume.h"
#include "llworld.h"
#include "lltoolmgr.h"
#include "llviewerjoystick.h"
Go to the source code of this file.
Defines | |
#define | M(row, col) m[col*4+row] |
Functions | |
glh::matrix4f | gl_pick_matrix (GLfloat x, GLfloat y, GLfloat width, GLfloat height, GLint *viewport) |
glh::matrix4f | gl_perspective (GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar) |
Variables | |
GLfloat | gGLZFar |
GLfloat | gGLZNear |
F64 | gGLModelView [16] |
F64 | gGLLastModelView [16] |
F64 | gGLProjection [16] |
S32 | gGLViewport [4] |
Copyright (c) 2002-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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 llviewercamera.cpp.
#define M | ( | row, | |||
col | ) | m[col*4+row] |
Referenced by gl_pick_matrix(), and LLGLUserClipPlane::setPlane().
glh::matrix4f gl_perspective | ( | GLfloat | fovy, | |
GLfloat | aspect, | |||
GLfloat | zNear, | |||
GLfloat | zFar | |||
) |
Definition at line 78 of file llviewercamera.cpp.
References DEG_TO_RAD, and tanf.
Referenced by LLPipeline::generateImpostor(), and LLViewerCamera::setPerspective().
glh::matrix4f gl_pick_matrix | ( | GLfloat | x, | |
GLfloat | y, | |||
GLfloat | width, | |||
GLfloat | height, | |||
GLint * | viewport | |||
) |
Definition at line 57 of file llviewercamera.cpp.
References M.
Referenced by LLViewerCamera::setPerspective().
F64 gGLLastModelView[16] |
Definition at line 151 of file llviewercamera.cpp.
Referenced by display(), render_ui_and_swap(), LLPipeline::renderObjects(), and LLPipeline::updateCull().
F64 gGLModelView[16] |
Definition at line 150 of file llviewercamera.cpp.
Referenced by LLRenderPass::applyModelMatrix(), LLDrawPoolBump::beginFullbrightShiny(), LLDrawPoolBump::beginShiny(), display(), LLDrawPoolAvatar::getModelView(), glh_get_current_modelview(), glh_set_current_modelview(), hud_render_text(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), LLViewerCamera::projectScreenToPosAgent(), LLPipeline::renderDebug(), LLPipeline::renderForSelect(), LLPipeline::renderGeom(), LLDrawPoolTree::renderTree(), LLCubeMap::setMatrix(), LLViewerCamera::setPerspective(), LLOctreeRenderNonOccluded::traverse(), LLWaterParamManager::update(), and LLViewerCamera::updateFrustumPlanes().
F64 gGLProjection[16] |
Definition at line 152 of file llviewercamera.cpp.
Referenced by glh_get_current_projection(), glh_set_current_projection(), hud_render_text(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), LLViewerCamera::projectScreenToPosAgent(), LLPipeline::renderGeom(), LLViewerCamera::setPerspective(), and LLViewerCamera::updateFrustumPlanes().
S32 gGLViewport[4] |
Definition at line 153 of file llviewercamera.cpp.
Referenced by LLPipeline::generateImpostor(), LLPipeline::generateWaterReflection(), LLViewerWindow::hitObjectOrLandGlobalAsync(), hud_render_text(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), LLViewerCamera::projectScreenToPosAgent(), LLPipeline::renderForSelect(), LLViewerCamera::setPerspective(), LLViewerWindow::setupViewport(), LLDrawPoolWater::shade(), and LLViewerCamera::updateFrustumPlanes().
GLfloat gGLZFar |
GLfloat gGLZNear |