📄 object.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 + -