亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? t3dlib1.h

?? 游戲的聲音圖像演示程序
?? H
?? 第 1 頁 / 共 2 頁
字號:
// T3DLIB1.H - Header file for T3DLIB1.CPP game engine library

// watch for multiple inclusions
#ifndef T3DLIB1
#define T3DLIB1

// DEFINES ////////////////////////////////////////////////

// default screen values, these are all overriden by the 
// call to DDraw_Init() and are just here to have something
// to set the globals to instead of constant values
#define SCREEN_WIDTH        640  // size of screen
#define SCREEN_HEIGHT       480
#define SCREEN_BPP          8    // bits per pixel
#define MAX_COLORS_PALETTE  256


#define DEFAULT_PALETTE_FILE "PALDATA2.PAL"

// used for selecting full screen/windowed mode
#define SCREEN_FULLSCREEN    0
#define SCREEN_WINDOWED      1

// bitmap defines
#define BITMAP_ID            0x4D42 // universal id for a bitmap
#define BITMAP_STATE_DEAD    0
#define BITMAP_STATE_ALIVE   1
#define BITMAP_STATE_DYING   2 
#define BITMAP_ATTR_LOADED   128

#define BITMAP_EXTRACT_MODE_CELL  0
#define BITMAP_EXTRACT_MODE_ABS   1

// directdraw pixel format defines, used to help
// bitmap loader put data in proper format
#define DD_PIXEL_FORMAT8        8
#define DD_PIXEL_FORMAT555      15
#define DD_PIXEL_FORMAT565      16
#define DD_PIXEL_FORMAT888      24
#define DD_PIXEL_FORMATALPHA888 32 


// defines for BOBs
#define BOB_STATE_DEAD         0    // this is a dead bob
#define BOB_STATE_ALIVE        1    // this is a live bob
#define BOB_STATE_DYING        2    // this bob is dying
#define BOB_STATE_ANIM_DONE    1    // done animation state
#define MAX_BOB_FRAMES         64   // maximum number of bob frames
#define MAX_BOB_ANIMATIONS     16   // maximum number of animation sequeces

#define BOB_ATTR_SINGLE_FRAME   1   // bob has single frame
#define BOB_ATTR_MULTI_FRAME    2   // bob has multiple frames
#define BOB_ATTR_MULTI_ANIM     4   // bob has multiple animations
#define BOB_ATTR_ANIM_ONE_SHOT  8   // bob will perform the animation once
#define BOB_ATTR_VISIBLE        16  // bob is visible
#define BOB_ATTR_BOUNCE         32  // bob bounces off edges
#define BOB_ATTR_WRAPAROUND     64  // bob wraps around edges
#define BOB_ATTR_LOADED         128 // the bob has been loaded
#define BOB_ATTR_CLONE          256 // the bob is a clone

// screen transition commands
#define SCREEN_DARKNESS  0         // fade to black
#define SCREEN_WHITENESS 1         // fade to white
#define SCREEN_SWIPE_X   2         // do a horizontal swipe
#define SCREEN_SWIPE_Y   3         // do a vertical swipe
#define SCREEN_DISOLVE   4         // a pixel disolve
#define SCREEN_SCRUNCH   5         // a square compression
#define SCREEN_BLUENESS  6         // fade to blue
#define SCREEN_REDNESS   7         // fade to red
#define SCREEN_GREENNESS 8         // fade to green

// defines for Blink_Colors
#define BLINKER_ADD           0    // add a light to database  
#define BLINKER_DELETE        1    // delete a light from database
#define BLINKER_UPDATE        2    // update a light
#define BLINKER_RUN           3    // run normal

// pi defines
#define PI         ((float)3.141592654f)
#define PI2        ((float)6.283185307f)
#define PI_DIV_2   ((float)1.570796327f)
#define PI_DIV_4   ((float)0.785398163f) 
#define PI_INV     ((float)0.318309886f) 

// fixed point mathematics constants
#define FIXP16_SHIFT     16
#define FIXP16_MAG       65536
#define FIXP16_DP_MASK   0x0000ffff
#define FIXP16_WP_MASK   0xffff0000
#define FIXP16_ROUND_UP  0x00008000

// MACROS /////////////////////////////////////////////////

// these read the keyboard asynchronously
#define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)
#define KEY_UP(vk_code)   ((GetAsyncKeyState(vk_code) & 0x8000) ? 0 : 1)

// this builds a 16 bit color value in 5.5.5 format (1-bit alpha mode)
#define _RGB16BIT555(r,g,b) ((b & 31) + ((g & 31) << 5) + ((r & 31) << 10))

// this builds a 16 bit color value in 5.6.5 format (green dominate mode)
#define _RGB16BIT565(r,g,b) ((b & 31) + ((g & 63) << 5) + ((r & 31) << 11))

// this builds a 24 bit color value in 8.8.8 format 
#define _RGB24BIT(a,r,g,b) ((b) + ((g) << 8) + ((r) << 16) )

// this builds a 32 bit color value in A.8.8.8 format (8-bit alpha mode)
#define _RGB32BIT(a,r,g,b) ((b) + ((g) << 8) + ((r) << 16) + ((a) << 24))

// bit manipulation macros
#define SET_BIT(word,bit_flag)   ((word)=((word) | (bit_flag)))
#define RESET_BIT(word,bit_flag) ((word)=((word) & (~bit_flag)))

// initializes a direct draw struct, basically zeros it and sets the dwSize field
#define DDRAW_INIT_STRUCT(ddstruct) { memset(&ddstruct,0,sizeof(ddstruct)); ddstruct.dwSize=sizeof(ddstruct); }

// used to compute the min and max of two expresions
#define MIN(a, b)  (((a) < (b)) ? (a) : (b)) 
#define MAX(a, b)  (((a) > (b)) ? (b) : (a)) 

// used for swapping algorithm
#define SWAP(a,b,t) {t=a; a=b; b=t;}

// some math macros
#define DEG_TO_RAD(ang) ((ang)*PI/180.0)
#define RAD_TO_DEG(rads) ((rads)*180.0/PI)

#define RAND_RANGE(x,y) ( (x) + (rand()%((y)-(x)+1)))

// TYPES //////////////////////////////////////////////////

// basic unsigned types
typedef unsigned short USHORT;
typedef unsigned short WORD;
typedef unsigned char  UCHAR;
typedef unsigned char  BYTE;
typedef unsigned int   QUAD;
typedef unsigned int   UINT;

// container structure for bitmaps .BMP file
typedef struct BITMAP_FILE_TAG
        {
        BITMAPFILEHEADER bitmapfileheader;  // this contains the bitmapfile header
        BITMAPINFOHEADER bitmapinfoheader;  // this is all the info including the palette
        PALETTEENTRY     palette[256];      // we will store the palette here
        UCHAR            *buffer;           // this is a pointer to the data

        } BITMAP_FILE, *BITMAP_FILE_PTR;

// the blitter object structure BOB
typedef struct BOB_TYP
        {
        int state;          // the state of the object (general)
        int anim_state;     // an animation state variable, up to you
        int attr;           // attributes pertaining to the object (general)
        float x,y;            // position bitmap will be displayed at
        float xv,yv;          // velocity of object
        int width, height;  // the width and height of the bob
        int width_fill;     // internal, used to force 8*x wide surfaces
        int bpp;            // bits per pixel
        int counter_1;      // general counters
        int counter_2;
        int max_count_1;    // general threshold values;
        int max_count_2;
        int varsI[16];      // stack of 16 integers
        float varsF[16];    // stack of 16 floats
        int curr_frame;     // current animation frame
        int num_frames;     // total number of animation frames
        int curr_animation; // index of current animation
        int anim_counter;   // used to time animation transitions
        int anim_index;     // animation element index
        int anim_count_max; // number of cycles before animation
        int *animations[MAX_BOB_ANIMATIONS]; // animation sequences

        LPDIRECTDRAWSURFACE7 images[MAX_BOB_FRAMES]; // the bitmap images DD surfaces
 
        } BOB, *BOB_PTR;

// the simple bitmap image
typedef struct BITMAP_IMAGE_TYP
        {
        int state;          // state of bitmap
        int attr;           // attributes of bitmap
        int x,y;            // position of bitmap
        int width, height;  // size of bitmap
        int num_bytes;      // total bytes of bitmap
        int bpp;            // bits per pixel
        UCHAR *buffer;      // pixels of bitmap

        } BITMAP_IMAGE, *BITMAP_IMAGE_PTR;

// blinking light structure
typedef struct BLINKER_TYP
               {
               // user sets these
               int color_index;         // index of color to blink
               PALETTEENTRY on_color;   // RGB value of "on" color
               PALETTEENTRY off_color;  // RGB value of "off" color
               int on_time;             // number of frames to keep "on" 
               int off_time;            // number of frames to keep "off"

               // internal member
               int counter;             // counter for state transitions
               int state;               // state of light, -1 off, 1 on, 0 dead
               } BLINKER, *BLINKER_PTR;

// a 2D vertex
typedef struct VERTEX2DI_TYP
        {
        int x,y; // the vertex
        } VERTEX2DI, *VERTEX2DI_PTR;

// a 2D vertex
typedef struct VERTEX2DF_TYP
        {
        float x,y; // the vertex
        } VERTEX2DF, *VERTEX2DF_PTR;


// a 2D polygon
typedef struct POLYGON2D_TYP
        {
        int state;        // state of polygon
        int num_verts;    // number of vertices
        int x0,y0;        // position of center of polygon  
        int xv,yv;        // initial velocity
        DWORD color;      // could be index or PALETTENTRY
        VERTEX2DF *vlist; // pointer to vertex list
 
        } POLYGON2D, *POLYGON2D_PTR;

// matrix defines

// 3x3 matrix /////////////////////////////////////////////
typedef struct MATRIX3X3_TYP
        {
        union
        {
        float M[3][3]; // array indexed data storage

        // storage in row major form with explicit names
        struct
             {
             float M00, M01, M02;
             float M10, M11, M12;
             float M20, M21, M22;
             }; // end explicit names

        }; // end union
        } MATRIX3X3, *MATRIX3X3_PTR;

// 1x3 matrix /////////////////////////////////////////////
typedef struct MATRIX1X3_TYP
        {
        union
        {
        float M[3]; // array indexed data storage

        // storage in row major form with explicit names
        struct
             {
             float M00, M01, M02;

             }; // end explicit names
        }; // end union
        } MATRIX1X3, *MATRIX1X3_PTR;

// 3x2 matrix /////////////////////////////////////////////
typedef struct MATRIX3X2_TYP
        {
        union
        {
        float M[3][2]; // array indexed data storage

        // storage in row major form with explicit names
        struct

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产aⅴ一区二区| 亚洲综合久久久| 日韩黄色在线观看| 91精品国产综合久久蜜臀| 天天综合天天做天天综合| 欧美高清一级片在线| 免费高清成人在线| 欧美一区二区三区免费| 日韩精品一二三四| 久久亚洲一区二区三区明星换脸| 日韩电影在线观看电影| 欧美大片一区二区| 国产成人啪免费观看软件| 中文字幕免费在线观看视频一区| 福利一区二区在线| 亚洲三级免费电影| 日韩一级片在线播放| 国产酒店精品激情| 亚洲免费观看高清完整版在线观看 | 久久成人免费网站| 中日韩免费视频中文字幕| 色婷婷综合久久久| 黄一区二区三区| 一区二区三区不卡视频在线观看| 欧美一区二区三区免费在线看| 国产成人aaa| 青青草97国产精品免费观看无弹窗版 | 91传媒视频在线播放| 国内精品不卡在线| 午夜视黄欧洲亚洲| 亚洲欧洲精品一区二区三区不卡 | 99re这里只有精品6| 黄网站免费久久| 日本系列欧美系列| 日韩精品久久理论片| 亚洲精品免费在线播放| 国产女人18毛片水真多成人如厕 | 欧美一区二区视频在线观看2020| youjizz久久| 国产精品一二三| 国产一区二区三区久久久| 日本麻豆一区二区三区视频| 精品一区二区三区免费毛片爱| 亚洲免费观看视频| 亚洲人成小说网站色在线| 国产精品嫩草99a| 国产精品欧美一级免费| 国产日本一区二区| 中文字幕二三区不卡| 国产精品美女一区二区在线观看| 国产丝袜欧美中文另类| 久久久777精品电影网影网| 国产欧美在线观看一区| 国产精品久久久久久久裸模 | 亚洲欧美日韩在线| 亚洲乱码国产乱码精品精小说 | 综合精品久久久| 亚洲人成网站在线| 日韩高清不卡在线| 偷拍亚洲欧洲综合| 久久草av在线| 成人毛片视频在线观看| 欧美无人高清视频在线观看| 欧美日韩在线播放三区| 欧美精品一区视频| 国产精品久久久久天堂| 亚洲成国产人片在线观看| 久久99久久久久| 91在线视频观看| 精品国产一区久久| 亚洲一区二区三区小说| 国产毛片精品国产一区二区三区| 99久久亚洲一区二区三区青草 | 免费黄网站欧美| 美女在线一区二区| 99精品国产视频| 日韩精品一区二区三区中文精品| 91精选在线观看| 国产精品女同一区二区三区| 亚洲综合在线免费观看| 美国精品在线观看| 在线免费精品视频| 国产午夜亚洲精品午夜鲁丝片| 夜夜嗨av一区二区三区网页| 国产成人自拍在线| 欧美tickling网站挠脚心| 丝袜美腿一区二区三区| 日本高清不卡视频| 中文字幕一区二区三中文字幕| 麻豆精品在线播放| 日韩一区二区三区视频| 亚洲一区二区三区爽爽爽爽爽| www..com久久爱| 国产精品久久久久影视| 国产91精品一区二区麻豆网站| 91视频你懂的| 亚洲精品美国一| 97se亚洲国产综合自在线观| 国产精品的网站| 成人激情小说乱人伦| 国产日韩成人精品| www.日韩在线| 一区二区三区不卡视频| 欧美中文字幕不卡| 午夜精品aaa| 欧美tk—视频vk| 国产成人综合亚洲91猫咪| 国产精品美女久久久久久久网站| av一二三不卡影片| 中文字幕精品在线不卡| 91麻豆swag| 蜜桃av一区二区在线观看 | 在线观看欧美黄色| 亚洲午夜久久久久久久久久久| 51精品秘密在线观看| 国产福利91精品一区| 亚洲男人天堂av网| 日韩午夜精品电影| 岛国精品在线播放| 视频一区视频二区中文字幕| 久久久噜噜噜久久人人看| 色噜噜狠狠色综合中国| 久久99精品久久久久久久久久久久| 国产精品色一区二区三区| 欧美巨大另类极品videosbest | 国产盗摄一区二区| 亚洲福利视频一区| 中文字幕欧美激情| 久久综合狠狠综合| 91麻豆精品国产自产在线观看一区| 国内精品久久久久影院色| 五月激情综合婷婷| 18成人在线观看| 国产日本欧洲亚洲| 欧美精品一区二区三| 欧美日本精品一区二区三区| 91亚洲大成网污www| 成人午夜在线免费| 免费观看日韩av| 亚洲高清免费一级二级三级| 国产精品不卡视频| 国产亚洲一二三区| 国产日产精品一区| 国产日韩欧美高清| 国产精品久久久久影院老司| 久久久精品国产免大香伊| 亚洲精品一区在线观看| 欧美岛国在线观看| 青草国产精品久久久久久| 不卡av在线免费观看| 成人av免费在线| 99久久精品免费看国产免费软件| 国产乱码精品一区二区三| 视频一区二区国产| 免费黄网站欧美| 国产99久久久国产精品免费看| 国产精品中文字幕欧美| 成人97人人超碰人人99| 91国产成人在线| 欧美日韩久久久一区| 欧美xfplay| 亚洲国产经典视频| 亚洲综合精品自拍| 久久国产福利国产秒拍| 99国产精品久久久久| 欧美日本在线观看| 中文字幕国产一区| 五月婷婷激情综合网| 国产成人在线色| 欧美日韩一级大片网址| 久久久99精品久久| 日本不卡视频在线| 麻豆精品视频在线| 97久久精品人人做人人爽50路| 欧美福利视频一区| 日韩伦理免费电影| 日韩avvvv在线播放| 99re热这里只有精品免费视频 | 九九精品视频在线看| 一道本成人在线| 久久久久久97三级| 蜜臀av性久久久久av蜜臀妖精| 成人午夜大片免费观看| 欧美一区二区在线播放| 亚洲激情图片一区| 99国产欧美另类久久久精品| 久久免费的精品国产v∧| 精品一区二区在线免费观看| 欧美精品久久天天躁| 同产精品九九九| 欧美三级电影网| 图片区小说区区亚洲影院| 91免费国产在线观看| 亚洲日本一区二区| 99精品视频一区二区三区| 18成人在线视频| 精品视频一区三区九区| 亚洲国产另类av| 在线视频你懂得一区| 国产精品麻豆99久久久久久|