VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelIdAndStreamedBytesTracker.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 namespace makVrv
15 {
16  // Helper class to track lowest model id and bytes streamed so far in the 3 buffers
17  // in gpu culling and lod
19  {
20  public:
23 
26 
27  private:
30 
33 
34  public:
36  virtual void set(int id, int bytes);
37 
39  virtual int modelId(void) const;
40 
42  virtual int bytes(void) const;
43 
45  virtual void reset(void);
46 
47  protected:
48  int myModelId;
50  };
51 }
int myBytesStreamed
Definition: DtModelIdAndStreamedBytesTracker.h:49
virtual void reset(void)
set to model id &amp; streamed bytes to (-1, 0)
DtModelIdAndStreamedBytesTracker & operator=(const DtModelIdAndStreamedBytesTracker &)=delete
prevent assignment
Definition: DtModelIdAndStreamedBytesTracker.h:18
virtual ~DtModelIdAndStreamedBytesTracker()
destructor
virtual int modelId(void) const
get the model id
virtual void set(int id, int bytes)
set the values of the model id &amp; the streamed number of bytes
Contains DLL export macros.
int myModelId
Definition: DtModelIdAndStreamedBytesTracker.h:48
virtual int bytes(void) const
get the bytes transfered so far

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)