Comments (5)
Hi,
What compiler are you using?
Thanks,
Christophe
from glm.
I'm using Visual Studio 2012 with the following Platform Toolsets: Visual Studio 2012 (v110). Sry, forgotten to mention it :)
from glm.
erm... I actually really don't understand what's causing this issue...
Can you try GLM 0.9.4 branch https://github.com/g-truc/glm/zipball/0.9.4 and confirm the problem?
If you still have an issue can you send me a code to reproduce the issue?
Thanks,
Christophe
from glm.
I tried it and visual studio still gives me the same errors.
I'm using DirectX 9 and OpenGL 4.3 ... its a very large code base but I'm using the following code:
GlobalHeader.h:
#include < glm\glm.hpp > <-- this is included in a global source file
in the global header file I've the following typedefs:
typedef glm::vec3 dmVector3;
typedef glm::vec2 dmVector2;
typedef glm::vec4 dmVector4;
typedef glm::mat4x4 dmMatrix4;
dmGLTriangleNode.cpp:
#include < glm/gtc/matrix_transform.hpp >
#include < glm/gtc/type_ptr.hpp >
glm::mat4 trans = glm::rotate(dmMatrix4(1.0f), mAngle*=0.4f , VECTOR_UP);
this->VSetTransform(&trans, null);
this->mShader.VBind();
int locationProjection = this->mShader.GetLocation("projectionMatrix");
int locationView = this->mShader.GetLocation("viewMatrix");
int locationToWorld = this->mShader.GetLocation("toWorldMatrix");
glUniformMatrix4fv(locationProjection, 1, GL_FALSE, glm::value_ptr(pScene->GetCamera()->GetProjection()));
glUniformMatrix4fv(locationView, 1, GL_FALSE, glm::value_ptr(pScene->GetCamera()->GetView()));
glUniformMatrix4fv(locationToWorld, 1, GL_FALSE, glm::value_ptr(this->mProperties.ToWorld()));
whenever I use glm::value_ptr(); it gives me the error with the quaternion.hpp since there is a overloaded function for quaternions. I excluded the overload function of value_ptr and it works but ran into another issue with the glm::rotate function as described above.
from glm.
Hi,
I still have no solution for you... Is there any chance that your application is actually defining "value_ptr" with a define?
Thanks,
Christophe
from glm.
Related Issues (20)
- Trouble finding glm with cmake's find_package
- Vector GLM Logo HOT 1
- Quaternion constructor order doesn't depend on GLM_FORCE_QUAT_DATA_WXYZ HOT 1
- Defaulted functions causes initialization to 0 in constructor HOT 2
- No cmake install target HOT 1
- Swizzle support for CUDA HOT 4
- Disabled gtx/hash.hpp?
- Make HIP compatible HOT 3
- MSB1008 Error when running cmake --build with MSBuild v17 HOT 1
- update the tag version
- Unexpected `compMin` behavior. HOT 3
- C++20 support for constexpr and SIMD simultaneously
- quaternion_exponential.inl appears to incorrectly calculate exp(q)
- License statement grammer issue. HOT 1
- orientate4 & orientate3 call yawPitchRoll with wrong parameter order
- CUDA compiler error in type_aligned.hpp HOT 1
- Unnecessary warnings from matrix_projection.inl HOT 1
- Why unit test "ext_matrix_clip_space.cpp" is not used?
- glm::intersectRayTriangle might be broken
- Undefined behaviour warning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glm.