blob: f001017ba9866bc04b3befe794fdc94269fac3b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#ifndef _AGL_DSP_H_
#define _AGL_DSP_H_
/**> HEADER FILES <**/
#include <stdlib.h> // ANSI C cross platform headers
#include <stdio.h>
#include <DrawSprocket.h> // DrawSprocket
#include <agl.h> // Apple's OpenGL
#include <glu.h> // Used for setting perspective and making objects
#include <tk.h> // Used for loading images
/**> CONSTANT DECLARATIONS <**/
#define kMoveToFront kFirstWindowOfClass
// Screen Dimensions
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
/**> GLOBAL VARIABLES <**/
extern DSpContextAttributes gDSpContextAttributes; // Global DrawSprocket context attributes
extern DSpContextReference gDSpContext; // The global DrawSprocket context
extern AGLContext gOpenGLContext; // The global OpenGL (AGL) context
// Note: These are actually defined in AGL_DSp.cpp
/**> FUNCTION PROTOTYPES <**/
void ToolboxInit( void );
Boolean HasAppearance( void );
CGrafPtr SetupScreen( int width, int height );
void CreateWindow( CGrafPtr &theFrontBuffer, int width, int height );
void ShutdownScreen( CGrafPtr theFrontBuffer );
AGLContext SetupAGL( AGLDrawable window );
void CleanupAGL( AGLContext context );
#endif
|