Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
texture0.h
Package: VCtracking.rar [view]
Upload User: xuczgm
Upload Date: 2022-04-25
Package Size: 8601k
Code Size: 1k
Category:
Special Effects
Development Platform:
Visual C++
- #ifndef __TEXTURE_H
- #define __TEXTURE_H
- #include <stdio.h>
- #include <iostream.h>
- #include <windows.h>
- #include <commctrl.h>
- #include <windowsx.h>
- #include <gl/gl.h>
- enum texTypes_t
- {
- PCX,
- BMP,
- TGA
- };
- typedef struct
- {
- // C Compatible version: enum texTypes textureType;
- // We use C++ only version
- texTypes_t textureType;
- int width; // width of texture
- int height; // height of texture
- long int scaledWidth;
- long int scaledHeight;
- unsigned int texID; // the texture object id of this texture
- unsigned char *data; // the texture data
- unsigned char *palette;
- } texture_t;
- // only partial pcx file header
- typedef struct
- {
- unsigned char manufacturer;
- unsigned char version;
- unsigned char encoding;
- unsigned char bits;
- unsigned char xMin;
- unsigned char yMin;
- unsigned char xMax;
- unsigned char yMax;
- unsigned char *palette;
- } PCXHEADER;
- #endif