亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
91精品国产美女浴室洗澡无遮挡| 91精品国产综合久久福利软件| 亚洲国产精品久久久久秋霞影院| 日韩一区二区三区视频| 91在线小视频| 狠狠色丁香婷婷综合久久片| 一区二区三区四区乱视频| 精品国产伦理网| 欧美在线观看一二区| 国产.欧美.日韩| 日本视频一区二区三区| 亚洲乱码国产乱码精品精可以看 | 欧美一区二区三区在线电影| 91日韩在线专区| 国产精品一二三| 日韩va亚洲va欧美va久久| 亚洲精品国产精品乱码不99| 国产亚洲欧美色| 欧美一区二区国产| 欧美性猛交xxxx黑人交| 成人国产精品免费观看动漫| 久久99热狠狠色一区二区| 亚洲图片自拍偷拍| 亚洲精品视频免费看| 久久精品水蜜桃av综合天堂| 欧美一区二区久久久| 欧美色男人天堂| 在线看国产一区二区| av亚洲精华国产精华| 成人一区二区三区视频| 国模冰冰炮一区二区| 毛片基地黄久久久久久天堂| 亚洲mv在线观看| 一区二区激情小说| 伊人一区二区三区| 亚洲精品伦理在线| 亚洲精品成人少妇| 一区二区三区在线免费播放| 亚洲精品大片www| 亚洲精品成人a在线观看| 亚洲精品欧美激情| 亚洲精品伦理在线| 玉足女爽爽91| 一区二区三区在线视频观看58| 中文字幕在线不卡一区| 日韩美女久久久| 亚洲精品成人在线| 婷婷开心激情综合| 麻豆精品在线观看| 国产馆精品极品| 不卡的电影网站| 色噜噜狠狠色综合中国| 欧美午夜影院一区| 欧美一区二区精美| 久久夜色精品国产噜噜av| 国产亚洲欧美色| 成人欧美一区二区三区在线播放| 亚洲免费在线观看视频| 亚洲成人黄色小说| 国模少妇一区二区三区| bt欧美亚洲午夜电影天堂| 日本韩国精品在线| 日韩一区二区三| 久久精品综合网| 亚洲色图丝袜美腿| 免费在线观看一区二区三区| 国内精品免费**视频| 91亚洲精品一区二区乱码| 色av成人天堂桃色av| 日韩欧美aaaaaa| 国产精品久久久久久久久动漫| 亚洲综合色在线| 激情久久五月天| 99re免费视频精品全部| 欧美高清视频www夜色资源网| 精品国产免费一区二区三区香蕉 | 久久99日本精品| 成人短视频下载| 欧美伊人精品成人久久综合97| 精品美女一区二区三区| 最新高清无码专区| 蜜桃视频第一区免费观看| 成人动漫视频在线| 7777精品伊人久久久大香线蕉的 | 国产精品第一页第二页第三页| 亚洲成人在线观看视频| 国产成人av电影在线| 欧美日本一道本| 国产精品进线69影院| 日韩成人免费电影| 成人av网址在线| 欧美一区二区二区| 艳妇臀荡乳欲伦亚洲一区| 国产一区二区免费看| 欧美日韩午夜在线| 国产日韩v精品一区二区| 亚洲综合免费观看高清完整版在线| 久久成人av少妇免费| 在线区一区二视频| 中文字幕av不卡| 久久99久久99小草精品免视看| 在线观看亚洲成人| 中文字幕一区二区三中文字幕| 激情小说亚洲一区| 欧美日韩精品一二三区| 亚洲同性同志一二三专区| 久久99热狠狠色一区二区| 欧美日韩一级片网站| 亚洲色图欧洲色图| 丰满少妇久久久久久久| 精品国产1区2区3区| 午夜精品久久久久久久99水蜜桃 | 欧美综合视频在线观看| 国产欧美日韩综合精品一区二区| 日韩国产精品久久久| 一本一道综合狠狠老| 中文字幕在线观看一区| 国产精品99久久久久久久女警| 日韩三级在线免费观看| 日韩高清在线一区| 欧美精品久久久久久久久老牛影院| 一区二区三区在线观看动漫| 99天天综合性| 日本一区二区不卡视频| 国产福利视频一区二区三区| 精品1区2区在线观看| 久久草av在线| 精品国产伦一区二区三区免费| 美洲天堂一区二卡三卡四卡视频| 欧美精品久久99久久在免费线 | 蜜桃av一区二区三区电影| 欧美丰满少妇xxxxx高潮对白| 樱桃视频在线观看一区| 欧美性色aⅴ视频一区日韩精品| 亚洲精品日产精品乱码不卡| 色婷婷久久久久swag精品| 1区2区3区国产精品| 91在线观看视频| 亚洲男帅同性gay1069| 日本高清不卡在线观看| 午夜国产精品影院在线观看| 欧美日韩在线播| 免费成人结看片| 久久众筹精品私拍模特| 国产激情视频一区二区三区欧美| 中文无字幕一区二区三区| 成人开心网精品视频| 亚洲欧美激情在线| 欧美日本一区二区在线观看| 乱一区二区av| 亚洲国产精品99久久久久久久久| 成人国产精品免费观看视频| 亚洲男人天堂一区| 欧美精品成人一区二区三区四区| 蜜臀va亚洲va欧美va天堂| 久久久亚洲高清| 91啪亚洲精品| 五月天国产精品| 精品久久久久久久人人人人传媒| 国产盗摄一区二区三区| 亚洲免费在线视频| 69av一区二区三区| 国产福利91精品一区二区三区| 中文字幕一区三区| 欧美美女黄视频| 国产乱淫av一区二区三区| 亚洲三级久久久| 日韩精品最新网址| 99久久综合99久久综合网站| 亚洲高清不卡在线观看| 精品少妇一区二区| 91小宝寻花一区二区三区| 婷婷综合久久一区二区三区| 日本一区二区免费在线| 欧美在线你懂的| 国产精品18久久久| 亚洲电影一级黄| 久久久久久亚洲综合影院红桃 | a在线播放不卡| 日韩高清电影一区| 国产精品素人一区二区| 欧美日本免费一区二区三区| 大美女一区二区三区| 婷婷六月综合亚洲| 最近日韩中文字幕| 精品日韩一区二区| 欧美日韩在线不卡| 99久久精品免费看国产| 麻豆91精品视频| 一区二区三区日韩在线观看| 久久婷婷国产综合国色天香| 欧美影视一区二区三区| 粉嫩欧美一区二区三区高清影视| 日一区二区三区| 亚洲黄色在线视频| 国产精品久久久99| 精品久久久久久久一区二区蜜臀| 欧美综合天天夜夜久久| 成人av网址在线| 国产福利一区二区三区|