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

📄 cbox.h

📁 这是一个用OPENGL和VC++作的人工智能程序,大家可以借鉴一下
💻 H
字号:
/* Copyright (C) Steven Woodcock, 2000.  * All rights reserved worldwide. * * This software is provided "as is" without express or implied * warranties. You may freely copy and compile this source into * applications you distribute provided that the copyright text * below is included in the resulting source code, for example: * "Portions Copyright (C) Steven Woodcock, 2000" *///*********************************************************************// Name:     CBox.h: // Purpose:  Class definitions and prototypes for the CBox class.//*********************************************************************#ifndef _CBOX_H#define _CBOX_Hclass CBox  {public:   ///////////////////   // static variables   ///////////////////   static CBox * WorldPtr;   ///////////////////////////////   // constructors and destructors   ///////////////////////////////      // Constructor #1.   // Creates a Box with default values of 50 meters on any side    // not specified.	CBox (float lv=50.0, float wv=50.0, float hv=50.0);   // Destructor   virtual ~CBox();   ////////////////////   // rendering methods   ////////////////////   void Draw (void);   //////////////////////////   // miscellaneous functions   //////////////////////////   // GetBoxLength.   // Returns the length of the Box, in meters.   float GetBoxLength (void);   // GetBoxWidth..   // Returns the width of the Box, in meters.   float GetBoxWidth (void);   // GetBoxHeight.   // Returns the height of the Box, in meters.   float GetBoxHeight (void);private:   float m_Length;   float m_Width;   float m_Height;};#endif

⌨️ 快捷键说明

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