commit 3a127afbf93ca30feaa99ca787dfa5d1351ffb83 parent 6e48e148cb88f67f010e9a6d0f52fa1a91b55318 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Sep 10 18:21:55 -0700 Statics Diffstat:
hm.cc | | | 6 | +++--- |
diff --git a/hm.cc b/hm.cc @@ -94,7 +94,7 @@ static const GLchar * font_frag_src = GLSL( } ); -glm::vec3 angles_to_vector( const glm::vec3 & angles ) { +static glm::vec3 angles_to_vector( const glm::vec3 & angles ) { return glm::vec3( -sin( angles.y ) * sin( angles.x ), -cos( angles.y ) * sin( angles.x ), @@ -102,11 +102,11 @@ glm::vec3 angles_to_vector( const glm::vec3 & angles ) { ); } -glm::vec3 angles_to_vector_xy( const glm::vec3 & angles ) { +static glm::vec3 angles_to_vector_xy( const glm::vec3 & angles ) { return glm::vec3( sin( angles.y ), cos( angles.y ), 0 ); } -glm::mat4 P( glm::perspective( glm::radians( 120.0f ), 640.0f / 480.0f, 0.1f, 10000.0f ) ); +static glm::mat4 P( glm::perspective( glm::radians( 120.0f ), 640.0f / 480.0f, 0.1f, 10000.0f ) ); static WORK_QUEUE_CALLBACK( testwq ) { u32 i = *( u32 * ) data;