Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Textures.h
/* |
* Textures.h |
* VertexPerformance |
* |
* Created by Kent Miller on Tue Oct 29 2002. |
* Copyright (c) 2002 Apple Computer. All rights reserved. |
* |
*/ |
#import <Cocoa/Cocoa.h> |
#import <OpenGL/gl.h> |
#define kTextureUnitCount 8 |
void TextureFromNSImage(NSImage *image, GLuint *texID, GLuint * width,GLuint *height); |
void StringToTexture( char * string, char * fontName, |
int fontSize, GLuint *texID, GLuint texWidth, |
GLuint texHeight, NSColor *color); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-07-07