c中图形的重要性 [英] significance of graphics in c

查看:72
本文介绍了c中图形的重要性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名IIIrd电子工程学生

i想知道图形在c中的作用是什么
可以花很多时间学习c图形或者开始使用像JAVA这样的新语言。


提前致谢。

I am a IIIrd electronics Engg student
i want to know what is the role of graphics in c
is it ok to spend a lot of time on learning c graphic or to start the
new language like JAVA.

Thanks in advance.

推荐答案

achiever写道:
achiever wrote:

我是一名IIIrd电子工程学生

i想知道什么是角色c
中的图形
I am a IIIrd electronics Engg student
i want to know what is the role of graphics in c



C没有原生图形支持。

C has no native graphics support.


可以花很多钱学习c图形的时间或启动像JAVA这样的新语言。
is it ok to spend a lot of time on learning c graphic or to start the
new language like JAVA.



如果你想要简单的方法,那么Java'的AWT或Swing可能是你的b
。如果您不介意花费相当多的时间使用平台的原始图形例程,那么它可以在C中完成,如果

不是更好。这只是你可以决定的权衡。在Java中你无法用C做任何事情,而你无法用C做任何事情。这只是一个多么实际的问题,以及你愿意花多少时间来支付b


If you want the easy way out, then Java''s AWT or Swing might be for
you. If you don''t mind spending a fair bit of time with the platform''s
native graphics routines, then it can be done in C equally well, if
not better. It''s a trade-off that only you can decide. There''re
nothing that you can do in Java that cannot be done in C; it''s just a
matter of how practical it is and how much time you''re willing to
devote to it.


achiever< fr ************ @ gmail.comwrote:
achiever <fr************@gmail.comwrote:

>我想知道图形在c中的作用是什么可以花费大量时间学习c图形或启动像JAVA这样的新语言。
>i want to know what is the role of graphics in c is it ok to spend a
lot of time on learning c graphic or to start the new language like
JAVA.



请参阅: http://c-faq.com/osdep/graphics.html


扩展:


C的作品适用于性能导向的应用程序,如3D(以及用于

的2D)引擎。像Java这样的面向对象的语言往往更适合用于GUI编程,IMO,尽管C完全有能力支付它的b $ b。


我建议谷歌搜索以下面向C的东西,并尝试特定于他们的
新闻组:


Unixy Windowsy
------ --------

3D:opengl direct3d

2D:sdl directx

GUI:gtk windows gui编程(??)


这些都不是标准C,这很好,但是人们不会这么做$ b想在这个新闻组中谈论它们。


要回答你的问题,花很多时间就可以了。

学习C图形API。


-Beej

See: http://c-faq.com/osdep/graphics.html

To expand on that:

C works well for performance-oriented applications like 3D (and 2D for
that matter) engines. Object-oriented languages like Java tend to be a
more natural fit for GUI programming, IMO, though C is perfectly capable
of it as well.

I suggest googling for the following C-oriented things, and trying
newsgroups specific to them:

Unixy Windowsy
------ --------
For 3D: opengl direct3d
For 2D: sdl directx
GUI: gtk windows gui programming(??)

None of these are standard C, which is fine, but people aren''t going to
want to talk about them in this newsgroup.

To answer your question, it is perfectly ok to spend a lot of time
learning a C graphics API.

-Beej


2月28日下午4:11,成功者 < friends.vik ... @ gmail.comwrote:
On Feb 28, 4:11 pm, "achiever" <friends.vik...@gmail.comwrote:

我是一名IIIrd电子工程学生

i想知道什么是图形在c />
中的作用是否可以花费大量时间学习图形或启动像JAVA这样的新语言。

先谢谢。
I am a IIIrd electronics Engg student
i want to know what is the role of graphics in c
is it ok to spend a lot of time on learning c graphic or to start the
new language like JAVA.

Thanks in advance.



一个主要的区别是图形可以在Java中移植,

但不在C中.comp.lang.c是一个新闻组关于便携式C,所以它不会能够帮助解决图形问题(适合你的

平台的新闻组可能会更有帮助);然而,对于高性能的图形应用程序,使用大多数便携式C和一些不便携的

位的图形可能仍然是一个好主意。

-

ais523

One major difference is that graphics can be done portably in Java,
but not in C. comp.lang.c is a newsgroup about portable C, so it won''t
be able to help with graphics questions (a newsgroup suited to your
platform might be more helpful); however, for high-performance
graphics applications using mostly-portable C with some nonportable
bits for the graphics may still be a good idea.
--
ais523


这篇关于c中图形的重要性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆