| VRS - The Virtual Rendering System |
| version 3.3 |
00001 #ifndef VRS_TRANSFORMFEEDBACKPRIMITIVESWRITTERQUERY_H 00002 #define VRS_TRANSFORMFEEDBACKPRIMITIVESWRITTERQUERY_H 00003 00004 // 00005 // VRS 00006 // 00007 #include <vrs/monoattribute.h> 00008 00009 00010 namespace VRS 00011 { 00012 class VRS_CORE_API TransformFeedbackPrimitivesWrittenQuery : public VRS::MonoAttribute 00013 { 00014 public: 00015 00016 TransformFeedbackPrimitivesWrittenQuery(bool enabled = true); 00017 00018 inline unsigned int getPrimitivesWritten(void) const 00019 { 00020 return this->primitivesWritten_; 00021 } 00022 00023 inline bool getIsAvaible(void) const 00024 { 00025 return this->isAvailable_; 00026 } 00027 00028 inline unsigned int getQueryID(void) const 00029 { 00030 return this->queryID_; 00031 } 00032 00033 VRS_TYPEINFO(TransformFeedbackPrimitivesWrittenQuery, VRS::MonoAttribute) 00034 VRS_SERIALIZABLE(TransformFeedbackPrimitivesWrittenQuery) 00035 00036 00037 private: 00038 00039 friend class TransformFeedbackPrimitivesWrittenQueryPainter; 00040 00041 private: 00042 00043 mutable unsigned int primitivesWritten_; 00044 mutable unsigned int queryID_; 00045 mutable bool inUse_; 00046 mutable bool isAvailable_; 00047 00048 };//endclass TransformFeedbackPrimitivesWrittenQuery 00049 00050 };//endnamespace VRS 00051 00052 #endif //VRS_TRANSFORMFEEDBACKPRIMITIVESWRITTERQUERY_H