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

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

?? d3dx8tex.h

?? directX8.1版本。的頭文件和庫 雖然現在directX9.0版本
?? H
?? 第 1 頁 / 共 4 頁
字號:
//////////////////////////////////////////////////////////////////////////////
//
//  Copyright (C) Microsoft Corporation.  All Rights Reserved.
//
//  File:       d3dx8tex.h
//  Content:    D3DX texturing APIs
//
//////////////////////////////////////////////////////////////////////////////

#include "d3dx8.h"

#ifndef __D3DX8TEX_H__
#define __D3DX8TEX_H__


//----------------------------------------------------------------------------
// D3DX_FILTER flags:
// ------------------
//
// A valid filter must contain one of these values:
//
//  D3DX_FILTER_NONE
//      No scaling or filtering will take place.  Pixels outside the bounds
//      of the source image are assumed to be transparent black.
//  D3DX_FILTER_POINT
//      Each destination pixel is computed by sampling the nearest pixel
//      from the source image.
//  D3DX_FILTER_LINEAR
//      Each destination pixel is computed by linearly interpolating between
//      the nearest pixels in the source image.  This filter works best 
//      when the scale on each axis is less than 2.
//  D3DX_FILTER_TRIANGLE
//      Every pixel in the source image contributes equally to the
//      destination image.  This is the slowest of all the filters.
//  D3DX_FILTER_BOX
//      Each pixel is computed by averaging a 2x2(x2) box pixels from 
//      the source image. Only works when the dimensions of the 
//      destination are half those of the source. (as with mip maps)
//
// And can be OR'd with any of these optional flags:
//
//  D3DX_FILTER_MIRROR_U
//      Indicates that pixels off the edge of the texture on the U-axis
//      should be mirrored, not wraped.
//  D3DX_FILTER_MIRROR_V
//      Indicates that pixels off the edge of the texture on the V-axis
//      should be mirrored, not wraped.
//  D3DX_FILTER_MIRROR_W
//      Indicates that pixels off the edge of the texture on the W-axis
//      should be mirrored, not wraped.
//  D3DX_FILTER_MIRROR
//      Same as specifying D3DX_FILTER_MIRROR_U | D3DX_FILTER_MIRROR_V |
//      D3DX_FILTER_MIRROR_V
//  D3DX_FILTER_DITHER
//      Dithers the resulting image.
//
//----------------------------------------------------------------------------

#define D3DX_FILTER_NONE            (1 << 0)
#define D3DX_FILTER_POINT           (2 << 0)
#define D3DX_FILTER_LINEAR          (3 << 0)
#define D3DX_FILTER_TRIANGLE        (4 << 0)
#define D3DX_FILTER_BOX             (5 << 0)

#define D3DX_FILTER_MIRROR_U        (1 << 16)
#define D3DX_FILTER_MIRROR_V        (2 << 16)
#define D3DX_FILTER_MIRROR_W        (4 << 16)
#define D3DX_FILTER_MIRROR          (7 << 16)
#define D3DX_FILTER_DITHER          (8 << 16)


//----------------------------------------------------------------------------
// D3DX_NORMALMAP flags:
// ---------------------
// These flags are used to control how D3DXComputeNormalMap generates normal
// maps.  Any number of these flags may be OR'd together in any combination.
//
//  D3DX_NORMALMAP_MIRROR_U
//      Indicates that pixels off the edge of the texture on the U-axis
//      should be mirrored, not wraped.
//  D3DX_NORMALMAP_MIRROR_V
//      Indicates that pixels off the edge of the texture on the V-axis
//      should be mirrored, not wraped.
//  D3DX_NORMALMAP_MIRROR
//      Same as specifying D3DX_NORMALMAP_MIRROR_U | D3DX_NORMALMAP_MIRROR_V
//  D3DX_NORMALMAP_INVERTSIGN
//      Inverts the direction of each normal 
//  D3DX_NORMALMAP_COMPUTE_OCCLUSION
//      Compute the per pixel Occlusion term and encodes it into the alpha.
//      An Alpha of 1 means that the pixel is not obscured in anyway, and
//      an alpha of 0 would mean that the pixel is completly obscured.
//
//----------------------------------------------------------------------------

//----------------------------------------------------------------------------

#define D3DX_NORMALMAP_MIRROR_U     (1 << 16)
#define D3DX_NORMALMAP_MIRROR_V     (2 << 16)
#define D3DX_NORMALMAP_MIRROR       (3 << 16)
#define D3DX_NORMALMAP_INVERTSIGN   (8 << 16)
#define D3DX_NORMALMAP_COMPUTE_OCCLUSION (16 << 16)




//----------------------------------------------------------------------------
// D3DX_CHANNEL flags:
// -------------------
// These flags are used by functions which operate on or more channels
// in a texture.
//
// D3DX_CHANNEL_RED
//     Indicates the red channel should be used
// D3DX_CHANNEL_BLUE
//     Indicates the blue channel should be used
// D3DX_CHANNEL_GREEN
//     Indicates the green channel should be used
// D3DX_CHANNEL_ALPHA
//     Indicates the alpha channel should be used
// D3DX_CHANNEL_LUMINANCE
//     Indicates the luminaces of the red green and blue channels should be 
//     used.
//
//----------------------------------------------------------------------------

#define D3DX_CHANNEL_RED            (1 << 0)
#define D3DX_CHANNEL_BLUE           (1 << 1)
#define D3DX_CHANNEL_GREEN          (1 << 2)
#define D3DX_CHANNEL_ALPHA          (1 << 3)
#define D3DX_CHANNEL_LUMINANCE      (1 << 4)




//----------------------------------------------------------------------------
// D3DXIMAGE_FILEFORMAT:
// ---------------------
// This enum is used to describe supported image file formats.
//
//----------------------------------------------------------------------------

typedef enum _D3DXIMAGE_FILEFORMAT
{
    D3DXIFF_BMP         = 0,
    D3DXIFF_JPG         = 1,
    D3DXIFF_TGA         = 2,
    D3DXIFF_PNG         = 3,
    D3DXIFF_DDS         = 4,
    D3DXIFF_PPM         = 5,
    D3DXIFF_DIB         = 6,
    D3DXIFF_FORCE_DWORD = 0x7fffffff

} D3DXIMAGE_FILEFORMAT;


//----------------------------------------------------------------------------
// LPD3DXFILL2D and LPD3DXFILL3D:
// ------------------------------
// Function types used by the texture fill functions.
//
// Parameters:
//  pOut
//      Pointer to a vector which the function uses to return its result.
//      X,Y,Z,W will be mapped to R,G,B,A respectivly. 
//  pTexCoord
//      Pointer to a vector containing the coordinates of the texel currently 
//      being evaluated.  Textures and VolumeTexture texcoord components 
//      range from 0 to 1. CubeTexture texcoord component range from -1 to 1.
//  pTexelSize
//      Pointer to a vector containing the dimensions of the current texel.
//  pData
//      Pointer to user data.
//
//----------------------------------------------------------------------------

typedef VOID (*LPD3DXFILL2D)(D3DXVECTOR4 *pOut, D3DXVECTOR2 *pTexCoord, D3DXVECTOR2 *pTexelSize, LPVOID pData);
typedef VOID (*LPD3DXFILL3D)(D3DXVECTOR4 *pOut, D3DXVECTOR3 *pTexCoord, D3DXVECTOR3 *pTexelSize, LPVOID pData);
 


//----------------------------------------------------------------------------
// D3DXIMAGE_INFO:
// ---------------
// This structure is used to return a rough description of what the
// the original contents of an image file looked like.
// 
//  Width
//      Width of original image in pixels
//  Height
//      Height of original image in pixels
//  Depth
//      Depth of original image in pixels
//  MipLevels
//      Number of mip levels in original image
//  Format
//      D3D format which most closely describes the data in original image
//  ResourceType
//      D3DRESOURCETYPE representing the type of texture stored in the file.
//      D3DRTYPE_TEXTURE, D3DRTYPE_VOLUMETEXTURE, or D3DRTYPE_CUBETEXTURE.
//  ImageFileFormat
//      D3DXIMAGE_FILEFORMAT representing the format of the image file.
//
//----------------------------------------------------------------------------

typedef struct _D3DXIMAGE_INFO
{
    UINT                    Width;
    UINT                    Height;
    UINT                    Depth;
    UINT                    MipLevels;
    D3DFORMAT               Format;
    D3DRESOURCETYPE         ResourceType;
    D3DXIMAGE_FILEFORMAT    ImageFileFormat;

} D3DXIMAGE_INFO;





#ifdef __cplusplus
extern "C" {
#endif //__cplusplus



//////////////////////////////////////////////////////////////////////////////
// Image File APIs ///////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
;
//----------------------------------------------------------------------------
// GetImageInfoFromFile/Resource:
// ------------------------------
// Fills in a D3DXIMAGE_INFO struct with information about an image file.
//
// Parameters:
//  pSrcFile
//      File name of the source image.
//  pSrcModule
//      Module where resource is located, or NULL for module associated
//      with image the os used to create the current process.
//  pSrcResource
//      Resource name
//  pSrcData
//      Pointer to file in memory.
//  SrcDataSize
//      Size in bytes of file in memory.
//  pSrcInfo
//      Pointer to a D3DXIMAGE_INFO structure to be filled in with the 
//      description of the data in the source image file.
//
//----------------------------------------------------------------------------

HRESULT WINAPI
    D3DXGetImageInfoFromFileA(
        LPCSTR                    pSrcFile,
        D3DXIMAGE_INFO*           pSrcInfo);

HRESULT WINAPI
    D3DXGetImageInfoFromFileW(
        LPCWSTR                   pSrcFile,
        D3DXIMAGE_INFO*           pSrcInfo);

#ifdef UNICODE
#define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileW
#else
#define D3DXGetImageInfoFromFile D3DXGetImageInfoFromFileA
#endif


HRESULT WINAPI
    D3DXGetImageInfoFromResourceA(
        HMODULE                   hSrcModule,
        LPCSTR                    pSrcResource,
        D3DXIMAGE_INFO*           pSrcInfo);

HRESULT WINAPI
    D3DXGetImageInfoFromResourceW(
        HMODULE                   hSrcModule,
        LPCWSTR                   pSrcResource,
        D3DXIMAGE_INFO*           pSrcInfo);

#ifdef UNICODE
#define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceW
#else
#define D3DXGetImageInfoFromResource D3DXGetImageInfoFromResourceA
#endif


HRESULT WINAPI
    D3DXGetImageInfoFromFileInMemory(
        LPCVOID                   pSrcData,
        UINT                      SrcDataSize,
        D3DXIMAGE_INFO*           pSrcInfo);




//////////////////////////////////////////////////////////////////////////////
// Load/Save Surface APIs ////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////

//----------------------------------------------------------------------------
// D3DXLoadSurfaceFromFile/Resource:
// ---------------------------------
// Load surface from a file or resource
//
// Parameters:
//  pDestSurface
//      Destination surface, which will receive the image.
//  pDestPalette
//      Destination palette of 256 colors, or NULL
//  pDestRect
//      Destination rectangle, or NULL for entire surface
//  pSrcFile
//      File name of the source image.
//  pSrcModule
//      Module where resource is located, or NULL for module associated
//      with image the os used to create the current process.
//  pSrcResource
//      Resource name
//  pSrcData
//      Pointer to file in memory.
//  SrcDataSize
//      Size in bytes of file in memory.
//  pSrcRect
//      Source rectangle, or NULL for entire image
//  Filter
//      D3DX_FILTER flags controlling how the image is filtered.
//      Or D3DX_DEFAULT for D3DX_FILTER_TRIANGLE.
//  ColorKey
//      Color to replace with transparent black, or 0 to disable colorkey.
//      This is always a 32-bit ARGB color, independent of the source image
//      format.  Alpha is significant, and should usually be set to FF for 
//      opaque colorkeys.  (ex. Opaque black == 0xff000000)
//  pSrcInfo
//      Pointer to a D3DXIMAGE_INFO structure to be filled in with the 
//      description of the data in the source image file, or NULL.
//
//----------------------------------------------------------------------------

HRESULT WINAPI
    D3DXLoadSurfaceFromFileA(
        LPDIRECT3DSURFACE8        pDestSurface,
        CONST PALETTEENTRY*       pDestPalette,
        CONST RECT*               pDestRect,
        LPCSTR                    pSrcFile,
        CONST RECT*               pSrcRect,
        DWORD                     Filter,
        D3DCOLOR                  ColorKey,
        D3DXIMAGE_INFO*           pSrcInfo);

HRESULT WINAPI
    D3DXLoadSurfaceFromFileW(
        LPDIRECT3DSURFACE8        pDestSurface,
        CONST PALETTEENTRY*       pDestPalette,
        CONST RECT*               pDestRect,
        LPCWSTR                   pSrcFile,
        CONST RECT*               pSrcRect,
        DWORD                     Filter,
        D3DCOLOR                  ColorKey,
        D3DXIMAGE_INFO*           pSrcInfo);

#ifdef UNICODE
#define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileW
#else
#define D3DXLoadSurfaceFromFile D3DXLoadSurfaceFromFileA
#endif



HRESULT WINAPI
    D3DXLoadSurfaceFromResourceA(
        LPDIRECT3DSURFACE8        pDestSurface,
        CONST PALETTEENTRY*       pDestPalette,
        CONST RECT*               pDestRect,
        HMODULE                   hSrcModule,
        LPCSTR                    pSrcResource,
        CONST RECT*               pSrcRect,
        DWORD                     Filter,
        D3DCOLOR                  ColorKey,
        D3DXIMAGE_INFO*           pSrcInfo);

HRESULT WINAPI
    D3DXLoadSurfaceFromResourceW(
        LPDIRECT3DSURFACE8        pDestSurface,
        CONST PALETTEENTRY*       pDestPalette,
        CONST RECT*               pDestRect,
        HMODULE                   hSrcModule,
        LPCWSTR                   pSrcResource,
        CONST RECT*               pSrcRect,
        DWORD                     Filter,
        D3DCOLOR                  ColorKey,
        D3DXIMAGE_INFO*           pSrcInfo);


#ifdef UNICODE
#define D3DXLoadSurfaceFromResource D3DXLoadSurfaceFromResourceW
#else

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品久久久久影院一蜜桃| 7777精品久久久大香线蕉| 日本不卡一区二区三区 | 国产精品主播直播| 国产伦精品一区二区三区在线观看| 美女网站色91| 精品无人区卡一卡二卡三乱码免费卡| 另类专区欧美蜜桃臀第一页| 麻豆精品在线播放| 国产一区二区在线观看免费| 国产一区二区电影| av一区二区三区| 一本色道久久综合精品竹菊| 欧美在线看片a免费观看| 欧美日韩久久久一区| 欧美一卡2卡3卡4卡| www国产成人免费观看视频 深夜成人网| 欧美不卡视频一区| 欧美国产成人精品| 亚洲精品网站在线观看| 日日噜噜夜夜狠狠视频欧美人 | 国产精品综合二区| 成人ar影院免费观看视频| 色av成人天堂桃色av| 欧美丰满一区二区免费视频| 日韩欧美高清在线| 国产精品日韩成人| 午夜精彩视频在线观看不卡| 国产综合成人久久大片91| 99国产精品国产精品毛片| 欧美精品在线观看一区二区| 久久综合999| 伊人夜夜躁av伊人久久| 久久er99热精品一区二区| 91欧美一区二区| 欧美一区二区播放| 亚洲欧美乱综合| 日本一区中文字幕| 欧美性淫爽ww久久久久无| 丰满少妇久久久久久久| 欧美三级在线视频| 国产亚洲欧洲一区高清在线观看| 亚洲男同1069视频| 中文字幕一区二区三区在线不卡| 亚洲第一会所有码转帖| 国产91精品欧美| 欧美日韩成人综合在线一区二区| 久久久久国产精品麻豆ai换脸| 亚洲高清视频在线| 成人性视频免费网站| 日韩欧美综合在线| 亚洲国产视频a| 成人免费视频播放| 日韩一区二区三区电影在线观看| 亚洲精品国产a久久久久久| 国产精品一级黄| 欧美电影免费观看高清完整版在线 | 国产亚洲一区二区三区四区| 日韩制服丝袜av| 91极品视觉盛宴| 亚洲视频综合在线| 成人av在线一区二区| 久久久亚洲精华液精华液精华液| 午夜av一区二区三区| 在线观看av一区二区| 欧美国产97人人爽人人喊| 国产美女av一区二区三区| 精品精品国产高清a毛片牛牛| 五月婷婷激情综合| 欧美精品日日鲁夜夜添| 亚洲一区二区三区四区的| 一本久道久久综合中文字幕| 中文字幕一区二区在线播放| 成人一级片网址| 中文字幕国产一区| 成人网页在线观看| 国产精品国产三级国产aⅴ中文| 国产成人免费网站| 国产欧美在线观看一区| 国产99一区视频免费| 中文字幕成人网| 懂色av一区二区夜夜嗨| 国产精品国产三级国产有无不卡 | 91在线云播放| 亚洲欧美国产三级| 欧美性猛片aaaaaaa做受| 亚洲欧美在线aaa| 97se亚洲国产综合在线| 亚洲国产综合色| 日韩欧美久久久| 国产不卡在线一区| 亚洲欧美日韩国产综合在线| 欧美探花视频资源| 美女视频黄久久| 国产欧美精品一区二区色综合| www.亚洲免费av| 亚洲成av人片观看| 精品免费日韩av| 欧美丝袜自拍制服另类| 日韩和欧美的一区| 国产片一区二区| 欧美影院一区二区三区| 久久福利视频一区二区| 国产精品久久久久aaaa樱花| 欧美日韩亚洲综合在线| 国产在线一区观看| 亚洲欧美日韩一区二区 | 日本大胆欧美人术艺术动态| 久久午夜色播影院免费高清| av在线不卡电影| 日韩国产在线观看| 国产精品麻豆一区二区| 欧美精品免费视频| 国产91丝袜在线18| 日本aⅴ免费视频一区二区三区 | 一本色道久久综合亚洲aⅴ蜜桃| 亚洲成人中文在线| 国产精品久久二区二区| 欧美一级久久久久久久大片| av在线这里只有精品| 极品少妇xxxx精品少妇偷拍| 亚洲免费观看高清完整| 久久久亚洲精品石原莉奈| 欧美天堂一区二区三区| 不卡一区二区中文字幕| 美女视频黄久久| 午夜伦理一区二区| 亚洲欧美怡红院| 欧美国产日韩a欧美在线观看| 日韩一区和二区| 在线观看中文字幕不卡| 成人福利视频在线| 国产麻豆日韩欧美久久| 老司机精品视频导航| 亚洲成在人线免费| 亚洲一区二区免费视频| 国产精品乱码一区二三区小蝌蚪| 欧美一卡二卡三卡| 欧美喷水一区二区| 欧美亚男人的天堂| 欧美性受xxxx黑人xyx性爽| 99久久er热在这里只有精品66| 国产精品91xxx| 国产在线观看免费一区| 九九国产精品视频| 久久精品国产亚洲a| 国产美女av一区二区三区| 麻豆精品在线播放| 久久精品国产澳门| 精品制服美女久久| 久久精品国内一区二区三区| 美女网站一区二区| 久久99国产乱子伦精品免费| 久久精品国产999大香线蕉| 青娱乐精品视频| 理论片日本一区| 久久99精品久久久久久动态图| 久久精品国产久精国产| 国产麻豆精品视频| 国产成人av电影在线| 暴力调教一区二区三区| www..com久久爱| 在线视频综合导航| 欧美撒尿777hd撒尿| 欧美精品第1页| 精品久久久久99| 国产精品美女久久久久久久久| 亚洲视频在线观看三级| 亚洲综合一区在线| 日本免费在线视频不卡一不卡二| 精品在线播放免费| 成a人片国产精品| 欧美私人免费视频| 久久影音资源网| 亚洲品质自拍视频| 日韩国产欧美三级| 国产精品系列在线观看| 91热门视频在线观看| 欧美日本不卡视频| 久久精品人人做| 亚洲欧美精品午睡沙发| 日本不卡的三区四区五区| 国产精品一区二区三区99| 99精品桃花视频在线观看| 欧美美女bb生活片| 国产日产精品1区| 亚洲18色成人| 懂色av一区二区三区免费看| 欧美日本不卡视频| 国产欧美日韩综合精品一区二区| 伊人色综合久久天天人手人婷| 麻豆成人免费电影| 一本久道久久综合中文字幕| 精品99999| 亚洲mv在线观看| 99精品欧美一区| 久久综合九色综合欧美就去吻| 亚洲一区二区三区四区五区中文 | 久久国产日韩欧美精品| 99久久精品免费精品国产|