[OpenGL] OpenGL 사면체
- 최초 등록일
- 2003.06.14
- 최종 저작일
- 2003.06
- 1페이지/ 압축파일
- 가격 1,000원
컴파일 실행환경
OpenGL 사면체 그리는 것
본문내용
/*
* Windows BMP file functions for OpenGL.
*
* Written by Michael Sweet.
*/
#include "bitmap.h"
#include < stdio.h>
#include < stdlib.h>
#include < errno.h>
#ifdef WIN32
/*
* 'LoadDIBitmap()' - Load a DIB/BMP file from disk.
*
* Returns a pointer to the bitmap if successful, NULL otherwise...
*/
GLubyte * /* O - Bitmap data */
LoadDIBitmap(const char *filename, /* I - File to load */
BITMAPINFO **info) /* O - Bitmap information */
{
FILE *fp; /* Open file pointer */
GLubyte *bits; /* Bitmap pixel bits */
int bitsize; /* Size of bitmap */
int infosize; /* Size of header information */
BITMAPFILEHEADER header; /* File header */
압축파일 내 파일목록
bitmap.c
bitmap.h
bitmap.ncb
bitmap.opt
land.BMP
sky.BMP
texture.c
texture.h
triangle.c
사면체.dsp
사면체.dsw
참고 자료
없음