如何管理现场? Directx,C ++ [英] How to manage scene?? Directx, c++

查看:98
本文介绍了如何管理现场? Directx,C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

请问有人可以建议我有关现场的管理吗?

通常,我使用if语句和标志来控制场景.
但是,当对象太多时,我的方法有点混乱.

然后,我想到了使用指向函数的指针,但是
我不擅长指针,有点令人困惑.

在DirectX中,有一些功能可以帮助管理场景?

hello,

can anybodody suggest me about scene''s management,please?

usually, i use if statement and flag to control scenes.
however, when objects are too many, my way is kinda of messy.

then, i think of use pointer to point function but
i am not good at pointer, kinda of confusing.

in directX, there are some kinds of functions to help about scene''s management??

推荐答案

您可以选择一种面向对象的方法,从而可以对类层次进行深思熟虑,利用多态性.但是,您确实需要了解OOP.
:)
You may choose an object oriented approach, making a well pondered class hierarchy, expoiting polymorphism. However you do need to know OOP.
:)


您可以使用场景图来管理场景..
这对您渲染特定对象很有帮助..
您可以使用开放场景图之类的库,并且可以在Internet上使用许多库.
you can use scene graphs to manage your scene..
this can be helpful for you to render specific objects..
you can use libs like open scene graph and many available on interenet.


这篇关于如何管理现场? Directx,C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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