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

📄 object.h

📁 allows the user to select files containing objects and draw them using one of the available project
💻 H
字号:
#ifndef OBJECT_H_
#define OBJECT_H_

#define STRICT
#include <windows.h>

#include "matrix.h"
#include "point3d.h"

typedef struct {
  int cCols;
  int cRows;
  POINT_3D **ppPoints;
} OBJECT_3D, *POBJECT_3D;


/*
 * Creates an object.
 */
OBJECT_3D *ObjectCreate (int cCols, int cRows);

/*
 *  Loads an 3D object from a file.
 *  Returns NULL on error.
 */
OBJECT_3D *ObjectLoad(const char *pszFileName);

/*
 * Destroys the object.
 */
void ObjectFree (OBJECT_3D *pObject);

/*
 * Multiplies the object position by the matrix,
 * returning a new copy.
 */
POBJECT_3D ObjectMultiply (const POBJECT_3D pObject, const MATRIX_4x4 pMatrix);

/*
 *  Shows the object definition.
 */
void ObjectPrint (const OBJECT_3D *pObject, const char *pszFileName);

#endif /* OBJECT_H_ */

⌨️ 快捷键说明

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