APEX Framework: UserRenderSpriteBuffer.h Source File

NVIDIA APEX

UserRenderSpriteBuffer.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 USER_RENDER_SPRITE_BUFFER_H
00013 #define USER_RENDER_SPRITE_BUFFER_H
00014 
00020 #include "RenderBufferData.h"
00021 #include "UserRenderSpriteBufferDesc.h"
00022 
00026 typedef struct CUgraphicsResource_st* CUgraphicsResource;
00027 
00028 namespace nvidia
00029 {
00030 namespace apex
00031 {
00032 
00033 PX_PUSH_PACK_DEFAULT
00034 
00038 class PX_DEPRECATED RenderSpriteBufferData : public RenderBufferData<RenderSpriteSemantic, RenderSpriteSemantic::Enum>, public ModuleSpecificRenderBufferData
00039 {
00040 };
00041 
00045 class UserRenderSpriteBuffer
00046 {
00047 public:
00048     virtual     ~UserRenderSpriteBuffer() {}
00049 
00061     virtual void writeBuffer(const void* data, uint32_t firstSprite, uint32_t numSprites)
00062     {
00063         PX_UNUSED(data);
00064         PX_UNUSED(firstSprite);
00065         PX_UNUSED(numSprites);
00066     }
00067 
00070     virtual bool getInteropResourceHandle(CUgraphicsResource& handle)
00071 #if APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION
00072     {
00073         PX_UNUSED(&handle);
00074         return false;
00075     }
00076 #else
00077     = 0;
00078 #endif
00079 
00083     virtual bool getInteropTextureHandleList(CUgraphicsResource* handleList)
00084     {
00085         PX_UNUSED(handleList);
00086         return false;
00087     }
00088 
00092     virtual void writeTexture(uint32_t textureId, uint32_t numSprites, const void* srcData, size_t srcSize)
00093     {
00094         PX_UNUSED(textureId);
00095         PX_UNUSED(numSprites);
00096         PX_UNUSED(srcData);
00097         PX_UNUSED(srcSize);
00098 
00099         PX_ALWAYS_ASSERT();
00100     }
00101 };
00102 
00103 PX_POP_PACK
00104 
00105 }
00106 } // end namespace nvidia::apex
00107 
00108 #endif // USER_RENDER_SPRITE_BUFFER_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.