APEX Framework: Context.h Source File

NVIDIA APEX

Context.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008-2017, NVIDIA CORPORATION.  All rights reserved.
00003  *
00004  * NVIDIA CORPORATION and its licensors retain all intellectual property
00005  * and proprietary rights in and to this software, related documentation
00006  * and any modifications thereto.  Any use, reproduction, disclosure or
00007  * distribution of this software and related documentation without an express
00008  * license agreement from NVIDIA CORPORATION is strictly prohibited.
00009  */
00010 
00011 
00012 #ifndef CONTEXT_H
00013 #define CONTEXT_H
00014 
00020 #include "ApexInterface.h"
00021 
00022 namespace nvidia
00023 {
00024 namespace apex
00025 {
00026 
00027 class Renderable;
00028 class RenderableIterator;
00029 
00030 PX_PUSH_PACK_DEFAULT
00031 
00035 class Context
00036 {
00037 public:
00041     virtual void removeAllActors() = 0;
00042 
00046     virtual RenderableIterator* createRenderableIterator() = 0;
00047 
00053     virtual void releaseRenderableIterator(RenderableIterator&) = 0;
00054 
00055 protected:
00056     virtual ~Context() {}
00057 };
00058 
00073 class RenderableIterator : public ApexInterface
00074 {
00075 public:
00079     virtual Renderable* getFirst() = 0;
00083     virtual Renderable* getNext() = 0;
00090     virtual void reset() = 0;
00091 };
00092 
00093 PX_POP_PACK
00094 
00095 }
00096 } // end namespace nvidia::apex
00097 
00098 #endif // CONTEXT_H

Generated on Fri Dec 15 2017 13:58:35
Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.