62 lines
2.3 KiB
C
62 lines
2.3 KiB
C
/***********************************************************************************************************************
|
|
*
|
|
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
|
|
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
|
|
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
|
|
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
|
|
* employees of Tech Soft 3D, Inc. is granted only under a written non-disclosure agreement, expressly prescribing the
|
|
* scope and manner of such use.
|
|
*
|
|
***********************************************************************************************************************/
|
|
/**
|
|
\file Viewer.h
|
|
|
|
***********************************************************************************************************************/
|
|
|
|
#ifndef _A3DPRCViewerGL_H
|
|
#define _A3DPRCViewerGL_H
|
|
|
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <math.h>
|
|
|
|
#ifdef __APPLE__
|
|
# include <GLUT/glut.h>
|
|
#else
|
|
# include <GL/glut.h>
|
|
#endif
|
|
|
|
//######################################################################################################################
|
|
#ifndef M_PI
|
|
# define M_PI 3.141592653589793238462643383279502884197169399375105820974944592308
|
|
#endif
|
|
|
|
//######################################################################################################################
|
|
#ifdef _DEBUG
|
|
# define PRINT_XML_ERROR(err) printf("<Error number=\"%d\" file=\"%s\" line=\"%d\"/>\n", err, __FILE__, __LINE__);
|
|
#else
|
|
# define PRINT_XML_ERROR(err) printf("<Error number=\"%d\"/>\n", err);
|
|
#endif
|
|
|
|
//######################################################################################################################
|
|
#define CHECK_RET_TERM(function_call)\
|
|
{\
|
|
const A3DStatus iRet__ = function_call;\
|
|
if(iRet__ != A3D_SUCCESS)\
|
|
{\
|
|
PRINT_XML_ERROR(iRet__)\
|
|
terminate2();\
|
|
return iRet__;\
|
|
}\
|
|
}
|
|
|
|
//######################################################################################################################
|
|
#define FOVY 40.0f
|
|
#define Stringize(L) #L
|
|
#define MakeString(M, L) M(L)
|
|
#define $Line MakeString(Stringize, __LINE__)
|
|
#define Todo __FILE__ "(" $Line ") : TODO: "
|
|
|
|
#endif
|