minor indentation fix
This commit is contained in:
@@ -11,7 +11,7 @@ class btTransform;
|
|||||||
///There is an implementation in
|
///There is an implementation in
|
||||||
///bullet3\examples\SharedMemory\plugins\tinyRendererPlugin\TinyRendererVisualShapeConverter.cpp
|
///bullet3\examples\SharedMemory\plugins\tinyRendererPlugin\TinyRendererVisualShapeConverter.cpp
|
||||||
struct UrdfRenderingInterface
|
struct UrdfRenderingInterface
|
||||||
{
|
{
|
||||||
///given a URDF link, convert all visual shapes into internal renderer (loading graphics meshes, textures etc)
|
///given a URDF link, convert all visual shapes into internal renderer (loading graphics meshes, textures etc)
|
||||||
///use the shapeUid as a unique identified to remove it
|
///use the shapeUid as a unique identified to remove it
|
||||||
virtual void convertVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame, const UrdfLink* linkPtr, const UrdfModel* model, int shapeUid, int objectIndex) =0;
|
virtual void convertVisualShapes(int linkIndex, const char* pathPrefix, const btTransform& localInertiaFrame, const UrdfLink* linkPtr, const UrdfModel* model, int shapeUid, int objectIndex) =0;
|
||||||
@@ -76,19 +76,19 @@ struct UrdfRenderingInterface
|
|||||||
///provide the image pixels as a part of a stream.
|
///provide the image pixels as a part of a stream.
|
||||||
virtual void copyCameraImageData(unsigned char* pixelsRGBA, int rgbaBufferSizeInPixels, float* depthBuffer, int depthBufferSizeInPixels,int* segmentationMaskBuffer, int segmentationMaskSizeInPixels, int startPixelIndex, int* widthPtr, int* heightPtr, int* numPixelsCopied)=0;
|
virtual void copyCameraImageData(unsigned char* pixelsRGBA, int rgbaBufferSizeInPixels, float* depthBuffer, int depthBufferSizeInPixels,int* segmentationMaskBuffer, int segmentationMaskSizeInPixels, int startPixelIndex, int* widthPtr, int* heightPtr, int* numPixelsCopied)=0;
|
||||||
|
|
||||||
///render an image, using some arbitraty view and projection matrix
|
///render an image, using some arbitraty view and projection matrix
|
||||||
virtual void render()=0;
|
virtual void render()=0;
|
||||||
|
|
||||||
///render an image using the provided view and projection matrix
|
///render an image using the provided view and projection matrix
|
||||||
virtual void render(const float viewMat[16], const float projMat[16])=0;
|
virtual void render(const float viewMat[16], const float projMat[16])=0;
|
||||||
|
|
||||||
///load a texture from file, in png or other popular/supported format
|
///load a texture from file, in png or other popular/supported format
|
||||||
virtual int loadTextureFile(const char* filename)=0;
|
virtual int loadTextureFile(const char* filename)=0;
|
||||||
|
|
||||||
///register a texture using an in-memory pixel buffer of a given width and height
|
///register a texture using an in-memory pixel buffer of a given width and height
|
||||||
virtual int registerTexture(unsigned char* texels, int width, int height)=0;
|
virtual int registerTexture(unsigned char* texels, int width, int height)=0;
|
||||||
|
|
||||||
///select a given texture for some visual shape.
|
///select a given texture for some visual shape.
|
||||||
virtual void activateShapeTexture(int objectUniqueId, int jointIndex, int shapeIndex, int textureUniqueId)=0;
|
virtual void activateShapeTexture(int objectUniqueId, int jointIndex, int shapeIndex, int textureUniqueId)=0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user