support changeVisualShape(rgbaColor) through GraphicsServer/Client

support getCameraInfo through GraphicsServer/Client
This commit is contained in:
Erwin Coumans
2019-07-02 09:48:34 -07:00
parent 2db6d2f594
commit 9db6acd97d
7 changed files with 122 additions and 6 deletions

View File

@@ -106,6 +106,28 @@ struct GraphicsRemoveInstanceCommand
int m_graphicsUid;
};
struct GraphicsChangeRGBAColorCommand
{
int m_graphicsUid;
double m_rgbaColor[4];
};
struct GraphicsGetCameraInfoStatus
{
int width;
int height;
float viewMatrix[16];
float projectionMatrix[16];
float camUp[3];
float camForward[3];
float hor[3];
float vert[3];
float yaw;
float pitch;
float camDist;
float camTarget[3];
};
struct GraphicsSharedMemoryCommand
{
@@ -127,6 +149,7 @@ struct GraphicsSharedMemoryCommand
struct GraphicsRegisterGraphicsInstanceCommand m_registerGraphicsInstanceCommand;
struct GraphicsSyncTransformsCommand m_syncTransformsCommand;
struct GraphicsRemoveInstanceCommand m_removeGraphicsInstanceCommand;
struct GraphicsChangeRGBAColorCommand m_changeRGBAColorCommand;
};
};
@@ -151,6 +174,7 @@ struct GraphicsSharedMemoryStatus
struct GraphicsRegisterTextureStatus m_registerTextureStatus;
struct GraphicsRegisterGraphicsShapeStatus m_registerGraphicsShapeStatus;
struct GraphicsRegisterGraphicsInstanceStatus m_registerGraphicsInstanceStatus;
struct GraphicsGetCameraInfoStatus m_getCameraInfoStatus;
};
};