简体   繁体   English

从Java迁移到C ++ API

[英]Moving from Java to C++ API's

There are some particular API's in Java that make it very good. Java中有一些特殊的API使其非常出色。 However I would prefer C++ because of performance and "bleeding" edge support with OpenGL and OpenAL among the many libraries. 但是,由于许多库中的OpenGL和OpenAL具有性能和“出血”边缘支持,因此我更喜欢C ++。

Which API's are there that are similar to Java2D (I know I can use OpenGL however I lack the matrix math understanding to fully use OpenGL in this way)? 有哪些类似于Java2D的API(我知道我可以使用OpenGL,但是我缺乏矩阵数学知识,无法以这种方式完全使用OpenGL)? Also which GUI framework (non-native; platform independent) is the most used in C++? 还有哪个GUI框架(非本地;独立于平台)在C ++中使用最多?

如果要使用C ++平台无关的GUI框架,请检查Qt

FLTK, Fast Light Tool Kit has some 2d functionality. FLTK,快速照明工具套件具有某些2d功能。 It's somewhat like swing and 2d mixed together. 有点像秋千和二维混合在一起。 It does focus more on the UI aspect but it may help you out. 它确实更侧重于UI方面,但可能会对您有所帮助。

http://www.fltk.org/ http://www.fltk.org/

I can't speak much for Java2D equivalents but as far as GUI frameworks go, I've heard of two: 对于Java2D等效项,我不能说太多,但是就GUI框架而言,我听说过两个:

wxWidgets: http://www.wxwidgets.org/ wxWidgets: http : //www.wxwidgets.org/

Qt: http://qt.nokia.com/products/ Qt: http//qt.nokia.com/products/

Both of these are cross-platform and I believe widely used. 两者都是跨平台的,我相信它们已被广泛使用。

Try GTK--. 尝试GTK--。 It has some features that make it a bit nicer an API than either wx or Qt. 它具有一些功能,使其比wx或Qt更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM