mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +00:00
Fixed VC++ warnings.
This commit is contained in:
parent
8cd88ddf61
commit
839721b926
@ -281,8 +281,8 @@ void mouse_button_callback( GLFWwindow* window, int button, int action, int mods
|
|||||||
|
|
||||||
void cursor_position_callback( GLFWwindow* window, double x, double y )
|
void cursor_position_callback( GLFWwindow* window, double x, double y )
|
||||||
{
|
{
|
||||||
cursor_x = x;
|
cursor_x = (float) x;
|
||||||
cursor_y = y;
|
cursor_y = (float) y;
|
||||||
|
|
||||||
if ( override_pos )
|
if ( override_pos )
|
||||||
set_ball_pos(cursor_x, cursor_y);
|
set_ball_pos(cursor_x, cursor_y);
|
||||||
|
@ -30,12 +30,12 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#define GLFW_INCLUDE_GLU
|
|
||||||
#include <GLFW/glfw3.h>
|
|
||||||
|
|
||||||
#include <tinycthread.h>
|
#include <tinycthread.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
||||||
|
#define GLFW_INCLUDE_GLU
|
||||||
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
// Define tokens for GL_EXT_separate_specular_color if not already defined
|
// Define tokens for GL_EXT_separate_specular_color if not already defined
|
||||||
#ifndef GL_EXT_separate_specular_color
|
#ifndef GL_EXT_separate_specular_color
|
||||||
#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8
|
#define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8
|
||||||
|
Loading…
Reference in New Issue
Block a user