kreathyon
Member
|
in select character
hi,
I do not succeed in making after picture behind the figure, somebody can help me please?
Code:
void RenderSelectChr()
{
image2.Import("../data/gui/FCPerso.gfx",-1,IMAGE_2D);
image2.draw(Rect_RU(0, 0.170, 1.1f, 1.327f).extend(-0.05f));
switch(Renderer())
{
case RM_PREPARE:
{
LightDir(!(Cam.matrix.x+Cam.matrix.z-Cam.matrix.y)).add(false);
if(ChrSelection::Chr *chr=CS.list())
if(chr->mesh)chr->mesh->draw(MatrixIdentity);
}break;
}
}
I lowered picture to show you my problem.
|
|
08-05-2012 11:26 PM |
|
TBJokers
Member
|
RE: in select character
Code:
//This is global
Image image;
//This in the init
image.load("../data/gui/FCPerso.gfx");
//This in void Draw(); after Renderer(RenderSelectChr);
image.draw(Rect_RU(0, 0.170, 1.1f, 1.327f).extend(-0.05f));
Man, it's always that semicolon...
|
|
08-06-2012 12:37 PM |
|
kreathyon
Member
|
RE: in select character
(08-06-2012 12:37 PM)TBJokers Wrote:
Code:
//This is global
Image image;
//This in the init
image.load("../data/gui/FCPerso.gfx");
//This in void Draw(); after Renderer(RenderSelectChr);
image.draw(Rect_RU(0, 0.170, 1.1f, 1.327f).extend(-0.05f));
no change :(
|
|
08-06-2012 12:56 PM |
|
TBJokers
Member
|
RE: in select character
Oh sorry, the image.draw(); needs to be before the Renderer(RenderSelectChr);,
As an example, if i draw two images that should be full screen, only the latter will show..
first i draw this : MyImage.draw(); then i draw MyImage2.draw();, then MyImage2 will cover MyImage1
Man, it's always that semicolon...
|
|
08-06-2012 01:01 PM |
|
Esenthel
Administrator
|
RE: in select character
1. draw image
2. set Renderer.combine=true;
3. perform Rendering
4. disable combine
|
|
08-06-2012 01:49 PM |
|