当前位置:K88软件开发文章中心编程语言APP编程CrossApp → 文章内容

CARenderImage(图像渲染)

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-23 13:52:24

由 ?﹏???ζ???﹏﹏? 创建, 最后一次修改 2016-09-08 类说明图像渲染CARenderImage 方法方法说明visit访问draw显示create创建,指定Format和DepthStencilFormatcreate创建,指定Formatcreate创建initWithWidthAndHeight初始化指定格FormatinitWithWidthAndHeight初始化指定格Format和DepthStencilFormatprintscreenWithView截图并指定viewprintscreenWithView截图并指定view和offsetprintscreenWithView截图并指定view和backgroundColorprintscreenWithView截图并指定view、offset和backgroundColorclear清除背景颜色clearDepth清除depthValueclearStencil清除StencilsaveToFile保存到文件listenToBackground监听背景listenToForeground监听前景getClearFlags获取清除的标志setClearFlags设置清除的标志getClearColor获取清除的颜色setClearColor设置清除的颜色getClearDepth获取清除的深度setClearDepth设置清除的深度getClearStencil获取清除的模板setClearStencil设置清除的模板isAutoDraw查看是否自动显示setAutoDraw设置自动显示CARenderImage 方法说明virtual void visit();返回值:void参数:解释:访问virtual void draw();返回值:void参数:解释:显示static CARenderImage* create(int w ,int h, CAImage::PixelFormat eFormat, GLuint uDepthStencilFormat);返回值:CARenderImage*参数:类型参数名说明intwWidthinthheightCAImage::PixelFormat eFormat格式GLuintuDepthStencilFormatDepthStencilFormat解释:创建,指定Format和DepthStencilFormatstatic CARenderImage* create(int w, int h, CAImage::PixelFormat eFormat);返回值:CARenderImage*参数:类型参数名说明intwWidthinthheightCAImage::PixelFormat eFormat格式解释:创建,指定Formatstatic CARenderImage* create(int w, int h);返回值:CARenderImage*参数:类型参数名说明intwWidthinthheight解释:创建bool initWithWidthAndHeight(int w, int h, CAImage::PixelFormat eFormat);返回值:bool参数:类型参数名说明intwWidthinthheightCAImage::PixelFormat eFormat格式解释:初始化指定格Formatbool initWithWidthAndHeight(int w, int h, CAImage::PixelFormat eFormat, GLuint uDepthStencilFormat);返回值:bool参数:类型参数名说明intwWidthinthheightCAImage::PixelFormat eFormat格式GLuintuDepthStencilFormatDepthStencilFormat解释:初始化指定格Format和DepthStencilFormatvoid printscreenWithView(CAView* view);返回值:void参数:类型参数名说明CAView*view图像解释:截图并指定viewvoid printscreenWithView(CAView* view, DPoint offset);返回值:void参数:类型参数名说明CAView*view图像DPointoffsetoffset解释:截图并指定view和offsetvoid printscreenWithView(CAView* view, const CAColor4B& backgroundColor);返回值:void参数:类型参数名说明CAView*view图像const CAColor4B&backgroundColor背景颜色解释:截图并指定view和backgroundColorvoid printscreenWithView(CAView* view, DPoint offset, const CAColor4B& backgroundColor);返回值:void参数:类型参数名说明CAView*view图像DPointoffsetoffsetconst CAColor4B&backgroundColor背景颜色解释:截图并指定view、offset和backgroundColorvoid clear(const CAColor4B& backgroundColor);返回值:void参数:类型参数名说明const CAColor4B&backgroundColor背景颜色解释:清除背景颜色void clearDepth(float depthValue);返回值:void参数:类型参数名说明floatdepthValuedepthValue解释:清除depthValuevoid clearStencil(int stencilValue);返回值:void参数:类型参数名说明intstencilValuestencilValue解释:清除Stencilbool saveToFile(const char* szFilePath);返回值:bool参数:类型参数名说明const char *szFilePath文件解释:保存到文件void listenToBackground(CAObject *obj);返回值:void参数:类型参数名说明CAObject* objobj解释:监听背景void listenToForeground(CAObject *obj);返回值:void参数:类型参数名说明CAObject* objobj解释:监听前景unsigned int getClearFlags() const;返回值:unsigned int 参数:解释:获取清除的标志void setClearFlags(unsigned int uClearFlags);返回值:void参数:类型参数名说明unsigned int uClearFlags标志解释:设置清除的标志const CAColor4F& getClearColor() const;返回值:const CAColor4F&参数:解释:获取清除的颜色void setClearColor(const CAColor4F &clearColor);返回值:void参数:类型参数名说明const CAColor4F&clearColor颜色解释:设置清除的颜色float getClearDepth() const;返回值:float参数:解释:获取清除的深度void setClearDepth(float fClearDepth);返回值:void参数:类型参数名说明floatfClearDepthDepth解释:设置清除的深度int getClearStencil() const;返回值:int参数:解释:获取清除的模板void setClearStencil(float fClearStencil);返回值:void参数:类型参数名说明floatfClearStencilStencil解释:设置清除的模板bool isAutoDraw() const;返回值:bool参数:解释:查看是否自动显示void setAutoDraw(bool bAutoDraw);返回值:void参数:类型参数名说明boolbAutoDraw自动显示解释:设置自动显示

CARenderImage(图像渲染)