c++ - 在 Silverlight for Windows Embedded 中实现图形硬件加速

标签 c++ opengl-es windows-ce platform-builder directdraw

有没有人有关于如何在 wince 中使用 DDraw 和 OpenGL 的示例代码?

我已经在网上搜索了,但没有找到任何关于如何使用 DDraw & OpenGL 在 wince 中实现硬件加速的信息。

请指导如何在wince 6.0 r3中使用OpenGL API实现硬件加速。

I want to know the steps regarding how to use the following:

 1. IRenderer
 2. ICustomSurface
 3. ICustomGraphicsDevice

在 wince 6.0 r3 中。

I have made one xaml which consist of four button . On click of any one button it calls a particular event. I have written c++ code in my subproject for using that xaml file.

Now i have to implement h/w acceleration for graphics in silverlight for windows embedded using OpenGL APIs

The default OpenGL plug-in is implemented in the following interfaces:

IRenderer :%_WINCEROOT%\PUBLIC\COMMON\OAK\XAMLRENDERERPLUGIN\OPENGL\
    openglrenderer.cpp
ICustomSurface: %_WINCEROOT%\PUBLIC\COMMON\OAK\XAMLRENDERERPLUGIN\OPENGL\
    openglsurface.cpp
ICustomGraphicsDevice :%_WINCEROOT%\PUBLIC\COMMON\OAK\XAMLRENDERERPLUGIN\OPENGL\
    opengldevice.cpp 

我知道,如果我熟悉了 OpenGL API,那么我也可以熟悉 DDraw API

请指导我,因为我对这些 API 非常不熟悉。

提前致谢

最佳答案

MSDN(和 Platform Builder 帮助)对 DirectDraw display driver concepts 有相当详尽的解释以及the DDGPE and DDHAL references .

现实是创建显示驱动程序是一项艰苦的工作。非常辛苦的工作,事实上。如果您只是从数据表开始,这可能需要几个月的工作,如果数据表错误或不完整(但这种情况经常发生),如果需要更多时间,我也不会感到惊讶。

您是否咨询过您的芯片供应商(您没有说明您使用的是什么显示 Controller ),看看他们是否已经有支持硬件加速的 CE 引用驱动程序?如果他们没有,您可能会查看 Linux 社区,看看是否可以找到驱动程序,然后将加速代码移植到 Platform Builder 附带的通用模板驱动程序之一或其他一些显示 Controller 靠近您正在使用的 Controller 。

关于c++ - 在 Silverlight for Windows Embedded 中实现图形硬件加速,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2871920/

相关文章:

c# - 单击不同按钮时保持对文本框的关注

c++ - 如何在 obj c/cocoa 中将数字四舍五入以 50 结尾

将 "normal"矩形转换为一组 GLes vector ?

windows - pthread 条件变量与 win32 事件(linux 与 windows-ce)

c - C和Windows API有什么关系?

android - TwoPassFilter GPUImage 究竟做了什么?

c++ - 在 Qt Creator 中将字符数据转换为 QString

c++ - C++ 模块是否不存在 ODR 违规?

c++ - 返回 0 之前主要崩溃

android - OpenGL ES 2.0 setLookAtM