TinyRendererVisualShapeConverter.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef TINY_RENDERER_VISUAL_SHAPE_CONVERTER_H
  2. #define TINY_RENDERER_VISUAL_SHAPE_CONVERTER_H
  3. #include "../Importers/ImportURDFDemo/LinkVisualShapesConverter.h"
  4. struct TinyRendererVisualShapeConverter : public LinkVisualShapesConverter
  5. {
  6. struct TinyRendererVisualShapeConverterInternalData* m_data;
  7. TinyRendererVisualShapeConverter();
  8. virtual ~TinyRendererVisualShapeConverter();
  9. virtual void convertVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame, const UrdfModel& model, class btCollisionObject* colShape, int objectIndex);
  10. void setUpAxis(int axis);
  11. void resetCamera(float camDist, float pitch, float yaw, float camPosX,float camPosY, float camPosZ);
  12. void clearBuffers(struct TGAColor& clearColor);
  13. void resetAll();
  14. void getWidthAndHeight(int& width, int& height);
  15. void setWidthAndHeight(int width, int height);
  16. void copyCameraImageData(unsigned char* pixelsRGBA, int rgbaBufferSizeInPixels, float* depthBuffer, int depthBufferSizeInPixels,int* segmentationMaskBuffer, int segmentationMaskSizeInPixels, int startPixelIndex, int* widthPtr, int* heightPtr, int* numPixelsCopied);
  17. void render();
  18. void render(const float viewMat[16], const float projMat[16]);
  19. };
  20. #endif //TINY_RENDERER_VISUAL_SHAPE_CONVERTER_H