⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpw_init.h

📁 关于游戏手柄的驱动编程
💻 H
📖 第 1 页 / 共 2 页
字号:
/***************************************************************************/
/*                                                                         */
/*  cpw_init.h                                                             */
/*                                                                         */
/*    The Cpw library init interface and developer log.                    */
/*                                                                         */
/*  Copyright 2001-2002 by                                                 */
/*  Jim Mathies,                                                           */
/*                                                                         */
/*  This file is part of the Cpw project, and may only be used,            */
/*  modified, and distributed under the terms of the Cpw project           */
/*  license.  By continuing to use, modify, or distribute this file        */
/*  you indicate that you have read the license and understand and         */
/*  accept it fully.                                                       */
/*                                                                         */
/*  File Platform: cross                                                   */
/*                                                                         */
/***************************************************************************/

#ifndef __cpw_init_h__
#define __cpw_init_h__

#include "cpw_config.h"
#include "cpw_state.h"

CPW_BEGIN_HEADER

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwInitDisplayMode                                                 */
  /*                                                                       */
  /* <Description>                                                         */
  /*                                                                       */
  CPW_API bool  
  cpwInitDisplayMode( pCpw cpw, 
                      uint_32 modes );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Defines>                                                             */
  /*                                                                       */
  /* <Description>                                                         */
  /*    Bit flag constants for cpwInitDisplayMode.                         */
  /*                                                                       */
  #define    CPW_SURFACE_RGBA     0x0000000000000001 /* (default) */
  #define    CPW_SURFACE_RGB      0x0000000000000001 
  #define    CPW_SURFACE_INDEX    0x0000000000000002 /* not supported */
  #define    CPW_SURFACE_SINGLE   0x0000000000000004
  #define    CPW_SURFACE_DOUBLE   0x0000000000000008 /* (default) */
  /* accumulation buffer requested */
  #define    CPW_SURFACE_ACCUM    0x0000000000000010
  /* depth buffer requested */
  #define    CPW_SURFACE_DEPTH    0x0000000000000020 /* (default) */
  /* stencil buffer requested */
  #define    CPW_SURFACE_STENCIL  0x0000000000000040
  /* stereo buffers requested */
  #define    CPW_SURFACE_STEREO   0x0000000000000080
  /* overall color component depth requests */
  #define    CPW_SURFACE_COLOR8   0x0000000000000100
  #define    CPW_SURFACE_COLOR16  0x0000000000000200 /* (default) */
  #define    CPW_SURFACE_COLOR32  0x0000000000000400
  #define    CPW_SURFACE_COLOR64  0x0000000000000800
  /* color buffer component specific bit depth requests */
  #define    CPW_SURFACE_RED2     0x0000000000001000
  #define    CPW_SURFACE_RED4     0x0000000000002000
  #define    CPW_SURFACE_RED8     0x0000000000004000
  #define    CPW_SURFACE_RED16    0x0000000000008000
  #define    CPW_SURFACE_GREEN2   0x0000000000010000
  #define    CPW_SURFACE_GREEN4   0x0000000000020000
  #define    CPW_SURFACE_GREEN8   0x0000000000040000
  #define    CPW_SURFACE_GREEN16  0x0000000000080000
  #define    CPW_SURFACE_BLUE2    0x0000000000100000
  #define    CPW_SURFACE_BLUE4    0x0000000000200000
  #define    CPW_SURFACE_BLUE8    0x0000000000400000
  #define    CPW_SURFACE_BLUE16   0x0000000000800000
  #define    CPW_SURFACE_ALPHA2   0x0000000001000000
  #define    CPW_SURFACE_ALPHA4   0x0000000002000000
  #define    CPW_SURFACE_ALPHA8   0x0000000004000000
  #define    CPW_SURFACE_ALPHA16  0x0000000008000000
  /* z buffer depth requests */
  #define    CPW_SURFACE_DEPTH2   0x0000000010000000
  #define    CPW_SURFACE_DEPTH4   0x0000000020000000
  #define    CPW_SURFACE_DEPTH8   0x0000000040000000 /* (default) */
  #define    CPW_SURFACE_DEPTH16  0x0000000080000000
  #define    CPW_SURFACE_DEPTH32  0x0000000100000000
  #define    CPW_SURFACE_DEPTH64  0x0000000200000000
  /* accumulation buffer's color component depth requests */
  #define    CPW_SURFACE_ACOLOR8  0x0004000000000000
  #define    CPW_SURFACE_ACOLOR16 0x0008000000000000
  #define    CPW_SURFACE_ACOLOR32 0x0010000000000000
  #define    CPW_SURFACE_ACOLOR64 0x0020000000000000
  /* accumulation buffer color component specific depth requests */
  #define    CPW_SURFACE_ARED2    0x0000000400000000
  #define    CPW_SURFACE_ARED4    0x0000000800000000
  #define    CPW_SURFACE_ARED8    0x0000001000000000
  #define    CPW_SURFACE_ARED16   0x0000002000000000
  #define    CPW_SURFACE_AGREEN2  0x0000004000000000
  #define    CPW_SURFACE_AGREEN4  0x0000008000000000
  #define    CPW_SURFACE_AGREEN8  0x0000010000000000
  #define    CPW_SURFACE_AGREEN16 0x0000020000000000
  #define    CPW_SURFACE_ABLUE2   0x0000040000000000
  #define    CPW_SURFACE_ABLUE4   0x0000080000000000
  #define    CPW_SURFACE_ABLUE8   0x0000100000000000
  #define    CPW_SURFACE_ABLUE16  0x0000200000000000
  #define    CPW_SURFACE_AALPHA2  0x0000400000000000
  #define    CPW_SURFACE_AALPHA4  0x0000800000000000
  #define    CPW_SURFACE_AALPHA8  0x0001000000000000
  #define    CPW_SURFACE_AALPHA16 0x0002000000000000
  /* accumulation buffer's z buffer depth requests */
  #define    CPW_SURFACE_ADEPTH2  0x0040000000000000
  #define    CPW_SURFACE_ADEPTH4  0x0080000000000000
  #define    CPW_SURFACE_ADEPTH8  0x0100000000000000
  #define    CPW_SURFACE_ADEPTH16 0x0200000000000000
  #define    CPW_SURFACE_ADEPTH32 0x0400000000000000
  #define    CPW_SURFACE_ADEPTH64 0x0800000000000000
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwInitWindowSize                                                  */
  /*                                                                       */
  /* <Description>                                                         */
  /*                                                                       */
  CPW_API bool  
  cpwInitWindowSize( pCpw cpw, 
                     uint_32 width, 
                     uint_32 height );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */
  /*    cpwInitWindowPosition                                              */
  /*                                                                       */
  /* <Description>                                                         */
  /*                                                                       */
  CPW_API bool  
  cpwInitWindowPosition( pCpw cpw, 
                         uint_32 xposition, 
                         uint_32 yposition );
  /*                                                                       */
  /*************************************************************************/

  /*************************************************************************/
  /*                                                                       */
  /* <Function>                                                            */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -