imap/services.h
Go to the documentation of this file.00001 /* 00002 Copyright (C) 2001 by Norman Kraemer 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __CS_IMAP_SYNTAXSERVICE_H__ 00020 #define __CS_IMAP_SYNTAXSERVICE_H__ 00021 00026 #include "csutil/scf.h" 00027 #include "csutil/ref.h" 00028 #include "ivideo/graph3d.h" 00029 00030 class csShaderVariable; 00031 class csMatrix3; 00032 class csVector3; 00033 class csVector2; 00034 class csColor; 00035 class csBox3; 00036 class csGradient; 00037 struct csAlphaMode; 00038 struct iEngine; 00039 struct iSector; 00040 struct iMaterialWrapper; 00041 struct iThingFactoryState; 00042 struct iLoaderContext; 00043 struct iDocumentNode; 00044 struct iString; 00045 struct iStringSet; 00046 00049 00050 #define CSTEX_UV 1 00051 00052 #define CSTEX_V1 2 00053 00054 #define CSTEX_V2 4 00055 00056 #define CSTEX_UV_SHIFT 8 00057 00059 SCF_VERSION (iSyntaxService, 1, 5, 0); 00060 00065 struct iSyntaxService : public iBase 00066 { 00081 virtual bool ParseBool (iDocumentNode* node, bool& result, 00082 bool def_result) = 0; 00083 00087 virtual bool ParseMatrix (iDocumentNode* node, csMatrix3 &m) = 0; 00088 00092 virtual bool ParseVector (iDocumentNode* node, csVector3 &v) = 0; 00093 00097 virtual bool ParseBox (iDocumentNode* node, csBox3 &v) = 0; 00098 00102 virtual bool ParseColor (iDocumentNode* node, csColor &c) = 0; 00103 00107 virtual bool ParseMixmode (iDocumentNode* node, uint &mixmode, 00108 bool allowFxMesh = false) = 0; 00109 00116 virtual bool HandlePortalParameter ( 00117 iDocumentNode* child, iLoaderContext* ldr_context, 00118 uint32 &flags, bool &mirror, bool &warp, int& msv, 00119 csMatrix3 &m, csVector3 &before, csVector3 &after, 00120 iString* destSector, bool& handled, bool& autoresolve) = 0; 00121 00125 virtual bool ParseGradient (iDocumentNode* node, 00126 csGradient& gradient) = 0; 00127 00131 virtual bool ParseShaderVar (iDocumentNode* node, 00132 csShaderVariable& var) = 0; 00133 00137 virtual void ReportError (const char* msgid, iDocumentNode* errornode, 00138 const char* msg, ...) CS_GNUC_PRINTF(4,5) = 0; 00139 00144 virtual void ReportBadToken (iDocumentNode* badtokennode) = 0; 00145 00149 virtual void Report (const char* msgid, int severity, 00150 iDocumentNode* errornode, const char* msg, ...) CS_GNUC_PRINTF(5,6) = 0; 00151 00155 virtual bool ParseAlphaMode (iDocumentNode* node, iStringSet* strings, 00156 csAlphaMode& alphaMode) = 0; 00157 00167 virtual bool ParseZMode (iDocumentNode* node, csZBufMode& zmode, 00168 bool allowZmesh = false) = 0; 00169 }; 00170 00173 #endif // __CS_IMAP_SYNTAXSERVICE_H__ 00174
Generated for Crystal Space by doxygen 1.2.18