aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llcamera.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llmath/llcamera.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llmath/llcamera.cpp')
-rw-r--r--linden/indra/llmath/llcamera.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmath/llcamera.cpp b/linden/indra/llmath/llcamera.cpp
index 13666ba..bc13c90 100644
--- a/linden/indra/llmath/llcamera.cpp
+++ b/linden/indra/llmath/llcamera.cpp
@@ -121,25 +121,25 @@ void LLCamera::setFar(F32 far_plane)
121 121
122size_t LLCamera::writeFrustumToBuffer(char *buffer) const 122size_t LLCamera::writeFrustumToBuffer(char *buffer) const
123{ 123{
124 memcpy(buffer, &mView, sizeof(F32)); 124 memcpy(buffer, &mView, sizeof(F32)); /* Flawfinder: ignore */
125 buffer += sizeof(F32); 125 buffer += sizeof(F32);
126 memcpy(buffer, &mAspect, sizeof(F32)); 126 memcpy(buffer, &mAspect, sizeof(F32)); /* Flawfinder: ignore */
127 buffer += sizeof(F32); 127 buffer += sizeof(F32);
128 memcpy(buffer, &mNearPlane, sizeof(F32)); 128 memcpy(buffer, &mNearPlane, sizeof(F32)); /* Flawfinder: ignore */
129 buffer += sizeof(F32); 129 buffer += sizeof(F32);
130 memcpy(buffer, &mFarPlane, sizeof(F32)); 130 memcpy(buffer, &mFarPlane, sizeof(F32)); /* Flawfinder: ignore */
131 return 4*sizeof(F32); 131 return 4*sizeof(F32);
132} 132}
133 133
134size_t LLCamera::readFrustumFromBuffer(const char *buffer) 134size_t LLCamera::readFrustumFromBuffer(const char *buffer)
135{ 135{
136 memcpy(&mView, buffer, sizeof(F32)); 136 memcpy(&mView, buffer, sizeof(F32)); /* Flawfinder: ignore */
137 buffer += sizeof(F32); 137 buffer += sizeof(F32);
138 memcpy(&mAspect, buffer, sizeof(F32)); 138 memcpy(&mAspect, buffer, sizeof(F32)); /* Flawfinder: ignore */
139 buffer += sizeof(F32); 139 buffer += sizeof(F32);
140 memcpy(&mNearPlane, buffer, sizeof(F32)); 140 memcpy(&mNearPlane, buffer, sizeof(F32)); /* Flawfinder: ignore */
141 buffer += sizeof(F32); 141 buffer += sizeof(F32);
142 memcpy(&mFarPlane, buffer, sizeof(F32)); 142 memcpy(&mFarPlane, buffer, sizeof(F32)); /* Flawfinder: ignore */
143 return 4*sizeof(F32); 143 return 4*sizeof(F32);
144} 144}
145 145