VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGLSLPreprocessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
38 #pragma once
39 
40 #include <vrvOsg/vrvOsg.h>
41 
42 #include <string.h>
43 #include <stdlib.h>
44 
45 #include <string>
46 
47 #include <vrvOsg/DtGLSLToken.h>
48 #include <vrvOsg/DtGLSLMacro.h>
49 
50 namespace makVrv
51 {
75  {
76  public:
84  static std::string preprocess(const std::string& inputSource);
85  protected:
88 
90  virtual ~DtGLSLPreprocessor();
91 
92  private:
94  DtGLSLPreprocessor(const DtGLSLPreprocessor& rhs) = delete;
96  DtGLSLPreprocessor& operator=(const DtGLSLPreprocessor& rhs) = delete;
97  protected:
109  void Define(const char *iMacroName, size_t iMacroNameLen,
110  const char *iMacroValue, size_t iMacroValueLen);
111 
121  void Define(const char *iMacroName, size_t iMacroNameLen, long iMacroValue);
122 
132  bool Undef(const char *iMacroName, size_t iMacroNameLen);
133 
153 
187 
196 
207 
219 
231 
243 
255 
267 
279 
291 
308 
322 
337 
354 
364 
373 
386 
395 
406 
421 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
This is a simplistic C/C++-like preprocessor.
Definition: DtGLSLPreprocessor.h:74
glsl token
glsl macro
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)