Goal:
I'm trying to do something simple, but already feel lost... My goal is to add a health and ammo meter to the HUD. I would like this have a small Icon (of a bullet / of a cross) and a number next to it.
Question:
I'm currently looking for some references about DXUT and DXUTgui. Anyone know a good resource?
Question:
Does DXUT gui have a control in which you can specify a bitmap?
Answer:
Ok I found that DXUTgui screen elements have a method setTexture which takes a texture index... and DXUTgui resourcemanager has a method addTexture which takes a filename...
Question:
but where oh where in the application layer or some layer can I call addTexture? Where is the resourcemanager object instanciated?
Answer:
Ok the resourcemanager is a friend of DXUTdialogs which you can get a pointer to with .getManager() yipee.
Question:
Now apparently the texture filename string used with addTexture is suppose to be a LPCWSTR... um whats that? And if I put the texture file in the media folder, what would the path look like to load it?
I was considering using .getManger()->addTexture inside TeapotWarsUI::TeapotWarsUI()
however it looks like the resourcemanager has already been created elsewhere, so it might make more sense to do it wherever that is,
Question:
wheres the resourcemanager instanciated/initialized?
Answer:
Ahha, in GameCode.cpp, looks like its just using the default constructor, so if I wanted to load all the textures in one place I could probably do it in the UI constructor as I was thinking.
Question:
Whats the difference between TeapotWarsGame and TeapotWarsApp ?
I'm trying to do something simple, but already feel lost... My goal is to add a health and ammo meter to the HUD. I would like this have a small Icon (of a bullet / of a cross) and a number next to it.
Question:
I'm currently looking for some references about DXUT and DXUTgui. Anyone know a good resource?
Question:
Does DXUT gui have a control in which you can specify a bitmap?
Answer:
Ok I found that DXUTgui screen elements have a method setTexture which takes a texture index... and DXUTgui resourcemanager has a method addTexture which takes a filename...
Question:
but where oh where in the application layer or some layer can I call addTexture? Where is the resourcemanager object instanciated?
Answer:
Ok the resourcemanager is a friend of DXUTdialogs which you can get a pointer to with .getManager() yipee.
Question:
Now apparently the texture filename string used with addTexture is suppose to be a LPCWSTR... um whats that? And if I put the texture file in the media folder, what would the path look like to load it?
I was considering using .getManger()->addTexture inside TeapotWarsUI::TeapotWarsUI()
however it looks like the resourcemanager has already been created elsewhere, so it might make more sense to do it wherever that is,
Question:
wheres the resourcemanager instanciated/initialized?
Answer:
Ahha, in GameCode.cpp, looks like its just using the default constructor, so if I wanted to load all the textures in one place I could probably do it in the UI constructor as I was thinking.
Question:
Whats the difference between TeapotWarsGame and TeapotWarsApp ?
The post was edited 8 times, last by JamesFord ().