Files
Hoops_Exchange/exchange/exchangesource/DrawingViewer/drawing_main.h
2025-12-15 23:22:33 +08:00

52 lines
1.8 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 drawing_main.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
#include <iostream>
//######################################################################################################################
#define CHECK_RET_TERM(function_call) {\
iRet = function_call;\
if(iRet != A3D_SUCCESS)\
{\
std::cout << #function_call " returned error " << iRet << std::endl;\
terminate2();\
return iRet;\
}\
}
//######################################################################################################################
#define FOVY 30.0f
#define Stringize(L) #L
#define MakeString(M, L) M(L)
#define $Line \
MakeString(Stringize, __LINE__)
#define Todo __FILE__ "(" $Line ") : TODO: "
#endif