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

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

?? mdefs.bas

?? 游戲常見三為場景
?? BAS
字號:
Attribute VB_Name = "mDefs"
Option Explicit

    
' Constants for use with win32 API ...
    
    Public Const IMAGE_BITMAP = 0
    Public Const LR_LOADFROMFILE = &H10
    Public Const LR_CREATEDIBSECTION = &H2000
    Public Const SRCCOPY = &HCC0020
    
' Constants for use with DirectX tlb
    Public Const DDSD_TEXTURESTAGE = 1048576
    Public Const DDSCAPS2_TEXTUREMANAGE = 16

' Various constants ...
    Public Const PIValue = 3.141593
    Public Const PIFactor = 0.017453
    
' Types for use with win32 API ...

    ' Wave format type
    Type WAVEFORMATEX
        wFormatTag As Integer
        nChannels As Integer
        nSamplesPerSec As Long
        nAvgBytesPerSec As Long
        nBlockAlign As Integer
        wBitsPerSample As Integer
        cbSize As Integer
    End Type
    
    ' Rectangle type
    Public Type RECT
        Left As Long
        Top As Long
        Right As Long
        Bottom As Long
    End Type
    
    ' Bitmap descriptor type
    Public Type BITMAP
        bmType As Long
        bmWidth As Long
        bmHeight As Long
        bmWidthBytes As Long
        bmPlanes As Integer
        bmBitsPixel As Integer
        bmBits As Long
    End Type

' Functions for use with win32 API ...

    ' Single Pixel manipulation
    Public Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long) As Long
    Public Declare Function SetPixelV Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
    
    ' DC manipulation
    Public Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
    Public Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
    Public Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
    Public Declare Function SaveDC Lib "gdi32" (ByVal hdc As Long) As Long
    Public Declare Function RestoreDC Lib "gdi32" (ByVal hdc As Long, ByVal nSavedDC As Long) As Long
    
    ' General GDI Object manipulation
    Public Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
    Public Declare Function GetObject Lib "gdi32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
    Public Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
    Public Declare Function CreateSolidBrush Lib "gdi32" (ByVal crColor As Long) As Long
    
    ' Bitmap manipulation
    Public Declare Function LoadImage Lib "user32" Alias "LoadImageA" (ByVal hInst As Long, ByVal lpsz As String, ByVal un1 As Long, ByVal n1 As Long, ByVal n2 As Long, ByVal un2 As Long) As Long
    Public Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
    Public Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
    Public Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
    Public Declare Function GetBitmapBits Lib "gdi32" (ByVal hBitmap As Long, ByVal dwCount As Long, lpBits As Any) As Long
    Public Declare Function SetBitmapBits Lib "gdi32" (ByVal hBitmap As Long, ByVal dwCount As Long, lpBits As Any) As Long
    
    ' Various functions
    Public Declare Function timeGetTime Lib "winmm.dll" () As Long
    Public Declare Function Rectangle Lib "gdi32" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
    Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal Destination As Long, ByVal source As Long, ByVal length As Long)
    Public Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long
    Public Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long

' Types for use with the application
        
    ' User type: Contains user data ...
        Public Type tOptions
            Transparent As Boolean                  ' Use texture transparency
            Translucent As Boolean                  ' Use texture translucency
            Specular As Boolean                     ' Use specular highlights
            Correct As Boolean                      ' Use perspectivic correction
            Mapping As Boolean                      ' Use texture mapping
            Phong As Boolean                        ' Use phong shading mode
            Filtering As Boolean                    ' Filter bilinear
        End Type
        Public Type tInputState
            MouseX As Single                        ' Position of mouse
            MouseY As Single                        ' Position of mouse
            MouseButton As Integer                  ' Mousebutton pressed
            KeyCode As Long                         ' Key pressed
        End Type
        Public Type tStats
            Frametime As Single                     ' Average frame time
        End Type
        Public Type tUser
            Position As D3DVECTOR                      ' Position of user within world
            LookH As Integer                           ' Direction user is facing
            LookV As Integer                           ' Elevation of user look
            Speed As Single                            ' Movement speed of user
            DisplaySize As Integer                     ' Size decrease of display
            DisplayOptions As tOptions                 ' Options for displaying 3D world
            InputState As tInputState                  ' Current state of input devices
            Stats As tStats                            ' Statistics
        End Type
    
    ' Direct3D Scene data types ...
        Public Type tLight
            D3DData As D3DLIGHT2                       ' Light data settings
            D3DObject As IDirect3DLight                ' Actual light object
        End Type
        Public Type tTexture
            DDSurface As IDirectDrawSurface2           ' DDraw surface holding texture
            D3DObject As IDirect3DTexture2             ' Actual Texture object
            D3DHandle As Long                          ' Texture handle
            Transparent As Boolean                     ' Should a color key be created for the texture
            Filename As String                         ' Filename of texture
            Width As Integer                           ' Size of texture
            Height As Integer                          ' Size of texture
        End Type
        Public Type tMaterial
            D3DData As D3DMATERIAL                     ' Material data settings
            D3DObject As IDirect3DMaterial2            ' Actual Material object
            D3DHandle As Long                          ' Handle to material
            D3DTextureIndex As Long                    ' Reference to texture used
        End Type
        Public Type tFace
            D3DDataCount As Integer                   ' Count of vertexdata
            D3DData(1999) As D3DVERTEX                ' Vertexdata for primitive drawing using this settings; Declared static because REDIM doesn't support nested dynamic arrays
            D3DMaterialIndex As Long                  ' Handle to material to use
            D3DTextureIndex As Long                    ' Reference to texture used
            D3DTransform As D3DMATRIX                 ' Transform matrix to apply
            Enabled As Boolean                        ' Tells if this face group is in use
            Translucent As Boolean                    ' Use translucency ?
        End Type
        Public Type tStar
            Altitude As Integer                       ' Altitude of star above ground
            Direction As Integer                      ' Direction of star relative to zero
            Color As Long                             ' Star color
        End Type
        Public Type tScene
            Lights() As tLight                        ' Collection of lights
            Textures() As tTexture                    ' Collection of textures
            Materials() As tMaterial                  ' Collection of materials
            Faces() As tFace                          ' Collection of faces
            Terrain(149, 149) As Byte                 ' Terrain altitude definition
            Stars(1999) As tStar                       ' Stars to fill sky
        End Type
    
' Public Variables for use with the application ...

    ' DirectX data ...
    
        ' DirectX instance variables
        Public G_oDDInstance As IDirectDraw4                ' Instance of DirectDraw interface
        Public G_oD3DInstance As IDirect3D3                 ' Instance of Direct3DIM interface
        Public G_oDSInstance As IDirectSound                ' Instance of DirectSound interface
        
        ' DirectX display system
        Public G_oDDPrimary As IDirectDrawSurface4          ' Primary surface
        Public G_oDDBackBuffer As IDirectDrawSurface4       ' Backbuffer surface
        Public G_dRenderArea As RECT                        ' Rectangle defining output area for DirectDraw
        Public G_dClearArea As D3DRECT                      ' Rectangle definition for clearing of backbuffer
        
        ' Driver variables and arrays for driver detection
        Public G_dDXDriverHard As tDDDriver                 ' Hardware DirectDraw driver
        Public G_dDXDriverSoft As tDDDriver                 ' Software DirectDraw driver
        Public G_dDXDriverPlus As tDDDriver                 ' Accellerator add on DirectDraw driver
        Public G_dDXSelectedDriver As tDDDriver             ' Selected driver
        Public G_bPrimaryDisplayAlreadyDetected As Boolean  ' Flag used for display driver enum
        
        ' Direct3D framework
        Public G_oD3DDevice As IDirect3DDevice3             ' D3DIM device
        Public G_oD3DViewport As IDirect3DViewport3         ' D3DIM viewport
        Public G_dD3DViewportArea As D3DRECT                ' Rectangle defining viewport
    
    ' Application: General application data ...
        
        ' Frame counter
        Public G_nFrameCount As Long                        ' Frame counter
        
        ' Scene data ...
        Public G_dUser As tUser                             ' User data
        Public G_dScene As tScene                           ' D3D scene data
        Public G_oDDTextSurface As IDirectDrawSurface4      ' Surface to hold scrolling text
        Public G_oDDWaterSurface As IDirectDrawSurface4     ' Surface to hold flowing water
        Public G_oDDFlameSurface As IDirectDrawSurface4     ' Surface to hold flame animation phases
        Public G_oDDCompassSurface As IDirectDrawSurface4   ' Surface to hold compass image
        
        Public G_oDSBPrimary As IDirectSoundBuffer          ' Primary sound buffer
        Public G_oDSListener As IDirectSound3DListener      ' Listener to D3DSound
        Public G_oDSBDisplaySound As IDirectSoundBuffer     ' DirectSound Buffer for display sound
        Public G_oDS3DBDisplaySound As IDirectSound3DBuffer ' DirectSound 3D Buffer for display sound
        Public G_oDSBStepSoft As IDirectSoundBuffer         ' DirectSound buffer for step noises
        Public G_oDSBStepHard As IDirectSoundBuffer         ' DirectSound buffer for step noises
        
        ' Miscellaneous data ...
        Public G_bAppInitialized As Boolean                 ' Initialization flag
        Public G_bAppRunning As Boolean                     ' Execution flag
        
        Public G_nDisplayWidth As Integer                   ' Width of display
        Public G_nDisplayHeight As Integer                  ' Height of display
        
    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线视频一区| www.久久久久久久久| 成人综合在线观看| 色吧成人激情小说| 日韩免费成人网| 亚洲人成网站影音先锋播放| 亚洲一区中文日韩| 精品亚洲欧美一区| 91黄视频在线观看| 精品国产欧美一区二区| 一区二区三区成人在线视频| 久久99精品国产.久久久久| 色狠狠av一区二区三区| 精品国产一区二区精华| 亚洲激情图片小说视频| 国产一区二区三区在线观看精品| 色香蕉成人二区免费| 精品日韩在线观看| 婷婷中文字幕一区三区| 成人免费视频免费观看| ww亚洲ww在线观看国产| 天天色天天爱天天射综合| 粉嫩在线一区二区三区视频| 91精品国产综合久久福利软件| 亚洲欧美一区二区三区久本道91| 久久er99精品| 久久这里只有精品6| 国产成人精品免费在线| 欧美喷潮久久久xxxxx| 综合久久一区二区三区| 成人深夜在线观看| 中文字幕免费不卡| 99热这里都是精品| 中文字幕一区二区三区精华液| 粉嫩欧美一区二区三区高清影视| 精品精品国产高清a毛片牛牛| 亚洲国产精品久久艾草纯爱| 欧美唯美清纯偷拍| 五月婷婷激情综合| 欧美一级片在线看| 免费在线观看精品| 日韩欧美国产电影| 国产麻豆精品久久一二三| 久久亚洲二区三区| 粉嫩蜜臀av国产精品网站| 亚洲国产激情av| 色94色欧美sute亚洲线路二| 亚洲一区精品在线| 欧美一级xxx| 国产精品88888| 玉米视频成人免费看| 51午夜精品国产| 成人午夜av电影| 亚洲一级电影视频| 精品国产亚洲在线| 99久久99久久久精品齐齐| 亚洲一区二区三区视频在线| 欧美高清hd18日本| 国产99久久久国产精品潘金 | 日韩经典一区二区| 久久久久高清精品| 精品视频999| 国产乱码一区二区三区| 夜夜亚洲天天久久| 久久青草欧美一区二区三区| 日韩欧美国产精品| 一本色道久久综合亚洲91 | 国产网红主播福利一区二区| 91视频免费看| 高清av一区二区| 轻轻草成人在线| 尤物在线观看一区| 中文字幕第一区第二区| 日韩欧美亚洲国产精品字幕久久久 | 一区二区免费在线| 国产欧美精品区一区二区三区| 欧美夫妻性生活| 欧美日韩一二三区| 一本到不卡免费一区二区| 国产成人自拍网| 欧美三级中文字| 日本一区二区三区高清不卡 | 日韩欧美高清一区| 国产精品私房写真福利视频| 中文字幕国产一区| 欧洲精品中文字幕| 高清在线观看日韩| 国内精品不卡在线| 久久福利视频一区二区| 免费看欧美美女黄的网站| 亚洲精品免费电影| 亚洲欧美日韩国产一区二区三区| 欧美日韩一二三区| 欧美精品高清视频| 91精品麻豆日日躁夜夜躁| eeuss鲁片一区二区三区| 成人黄色在线网站| 成人综合在线网站| 成人午夜精品一区二区三区| 成人免费毛片app| av欧美精品.com| 国产不卡高清在线观看视频| 成人午夜激情影院| 色视频成人在线观看免| 97精品久久久午夜一区二区三区| 成人综合在线观看| 精品视频一区二区三区免费| 精品国产亚洲在线| 欧美一区二区三区在线观看视频 | 国产精品亚洲第一区在线暖暖韩国| 韩国毛片一区二区三区| 黄一区二区三区| 91免费看视频| 91精品在线免费观看| 精品对白一区国产伦| 自拍偷拍国产精品| 亚洲大片精品永久免费| 免费日韩伦理电影| heyzo一本久久综合| 7777精品伊人久久久大香线蕉超级流畅| 色94色欧美sute亚洲线路一久 | 成人污视频在线观看| 欧美私人免费视频| 欧美精品一区二区久久婷婷| 久久免费偷拍视频| 一卡二卡欧美日韩| 国产很黄免费观看久久| 欧美亚洲国产一卡| 亚洲色图都市小说| 国产毛片一区二区| 91精品国产综合久久精品性色 | 午夜精品福利久久久| gogo大胆日本视频一区| 欧美在线|欧美| 亚洲日本在线a| 国产91丝袜在线播放0| 欧美色综合网站| 成人免费在线视频| 成人一区二区视频| 欧美电影免费观看高清完整版在线| 成人欧美一区二区三区1314| 国产在线精品视频| 精品人伦一区二区色婷婷| 日精品一区二区三区| 欧美日韩一区二区三区四区 | 粉嫩av亚洲一区二区图片| 欧美精品第1页| 热久久免费视频| 精品久久久久香蕉网| 奇米在线7777在线精品 | 日韩欧美一区二区免费| 日本美女视频一区二区| 欧美变态凌虐bdsm| 日韩二区三区四区| 久久综合久久综合久久综合| 麻豆国产欧美日韩综合精品二区| 欧美成人性战久久| 国产传媒日韩欧美成人| 国产精品欧美一级免费| 99久久er热在这里只有精品15| 亚洲三级在线观看| 欧美一区二区视频观看视频 | 不卡的av中国片| 午夜婷婷国产麻豆精品| 欧美第一区第二区| 久久99国产精品免费网站| 久久亚洲综合色| 色综合色综合色综合| 亚洲综合无码一区二区| 日韩精品在线看片z| 国产成人av电影在线| 亚洲国产综合人成综合网站| 精品成人在线观看| 成av人片一区二区| 亚洲成a人片在线观看中文| 久久免费的精品国产v∧| 在线观看日韩国产| 狠狠网亚洲精品| 亚洲成人免费观看| 国产精品情趣视频| 在线播放亚洲一区| 91网站最新地址| 成人一道本在线| 日本欧美一区二区| 一区二区三区在线免费观看| 日本一区二区电影| 91精品国产综合久久久久久久久久 | 国产精品小仙女| 精品在线观看免费| 天堂va蜜桃一区二区三区| 亚洲人一二三区| 欧美国产日产图区| 欧美大片在线观看一区| 欧美日韩不卡一区二区| 色av一区二区| 欧美日韩国产首页| 在线亚洲高清视频| 欧美性生活久久| 8x8x8国产精品| 欧美综合一区二区|