Made the pointer-ness of object handles explicit.

This commit is contained in:
Camilla Berglund
2013-01-05 21:13:28 +01:00
parent fc79e0a3a8
commit 9af960e2dd
32 changed files with 246 additions and 245 deletions

View File

@@ -357,7 +357,7 @@ static void drawAllViews(void)
// Window size callback function
//========================================================================
static void windowSizeFun(GLFWwindow window, int w, int h)
static void windowSizeFun(GLFWwindow* window, int w, int h)
{
width = w;
height = h > 0 ? h : 1;
@@ -369,7 +369,7 @@ static void windowSizeFun(GLFWwindow window, int w, int h)
// Window refresh callback function
//========================================================================
static void windowRefreshFun(GLFWwindow window)
static void windowRefreshFun(GLFWwindow* window)
{
do_redraw = 1;
}
@@ -379,7 +379,7 @@ static void windowRefreshFun(GLFWwindow window)
// Mouse position callback function
//========================================================================
static void cursorPosFun(GLFWwindow window, int x, int y)
static void cursorPosFun(GLFWwindow* window, int x, int y)
{
// Depending on which view was selected, rotate around different axes
switch (active_view)
@@ -414,7 +414,7 @@ static void cursorPosFun(GLFWwindow window, int x, int y)
// Mouse button callback function
//========================================================================
static void mouseButtonFun(GLFWwindow window, int button, int action)
static void mouseButtonFun(GLFWwindow* window, int button, int action)
{
if ((button == GLFW_MOUSE_BUTTON_LEFT) && action == GLFW_PRESS)
{
@@ -441,7 +441,7 @@ static void mouseButtonFun(GLFWwindow window, int button, int action)
int main(void)
{
GLFWwindow window;
GLFWwindow* window;
// Initialise GLFW
if (!glfwInit())