object.h

来自「allows the user to select files containi」· C头文件 代码 · 共 44 行

H
44
字号
#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 + =
减小字号Ctrl + -
显示快捷键?