在 Silverlight for Windows Embedded 中实现图形硬件加速
有谁有关于如何使用 DDraw 和 DDraw 的示例代码吗? wince中的OpenGL?
我在网上搜索过,没有找到任何关于如何使用 DDraw & 在 wince 中实现硬件加速的信息。 OpenGL。
请指导我如何在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中。
我制作了一个 xaml,其中包含 四个按钮。点击任何一个 按钮它调用一个特定的事件。我 在我的子项目中编写了 C++ 代码 用于使用该 xaml 文件。
现在我必须实施硬件 图形加速 嵌入式 windows 的 silverlight 使用 OpenGL API
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 非常不熟悉。
提前致谢
Does anyone have any sample code to how to use DDraw & OpenGL in wince?
I have searched the net and I didn't find anything on how to implement hardware acceleration in wince using DDraw & OpenGL.
Please guide me how to use OpenGL API in wince 6.0 r3 for implementing hardware acceleration.
I want to know the steps regarding how to use the following:
1. IRenderer
2. ICustomSurface
3. ICustomGraphicsDevice
in 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
I know that if i become familiar with OpenGL APIs then i can also become familiar with DDraw APIs
Please guide me as i am very much unfamiliar with these APIs.
Thanks in Advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MSDN(和 Platform Builder 帮助)对 DirectDraw 显示驱动程序概念以及DDGPE 和 DDHAL 参考文献。
现实情况是,创建显示驱动程序是一项艰苦的工作。事实上,非常辛苦。如果您只是从数据表开始,那么可能需要几个月的工作,如果数据表错误或不完整(但这种情况经常发生),那么如果需要更多时间,我也不会感到惊讶。
您是否已咨询过您的芯片供应商(您没有说明您正在使用什么显示控制器),看看他们是否已经有支持硬件加速的 CE 参考驱动程序?如果他们没有,您可以查看 Linux 社区,看看是否可以找到驱动程序,然后将加速代码移植到 Platform Builder 附带的通用模板驱动程序之一或其他一些显示控制器靠近您正在使用的控制器。
MSDN (and Platform Builder help) have a pretty thorough explanation of DirectDraw display driver concepts as well as the DDGPE and DDHAL references.
The reality is that creating display drivers is hard work. Very hard work, in fact. If you're starting from nothing but a data sheet, it's likely to be several months of work and I wouldn't be surprised if it took more if the data sheets are wrong or incomplete (and yet, that happens a lot).
Have you checked with your silicon vendor (you didn't say what display controller you're using) to see if they already have a reference driver for CE that supports hardware acceleration? If they don't have one, you might look to the Linux community to see if you can find a driver and then port the acceleration code over to either one of the generic template drivers that ships with Platform Builder or some other display controller that is close to the controller you're using.