About Store Forum Documentation Contact
Donations:
167$/mo



Post Reply 
in select character
Author Message
kreathyon Offline
Member

Post: #1
in select character
hi,

I do not succeed in making after picture behind the figure, somebody can help me please?

[Image: perso.png]

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
Visit this user's website Find all posts by this user Quote this message in a reply
TBJokers Offline
Member

Post: #2
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
Visit this user's website Find all posts by this user Quote this message in a reply
kreathyon Offline
Member

Post: #3
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
Visit this user's website Find all posts by this user Quote this message in a reply
TBJokers Offline
Member

Post: #4
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: in select character
1. draw image
2. set Renderer.combine=true;
3. perform Rendering
4. disable combine
08-06-2012 01:49 PM
Find all posts by this user Quote this message in a reply
kreathyon Offline
Member

Post: #6
RE: in select character
I followed your indications and finally to replace picture with a thorough picture and it works, still thanks to you of your help wink
08-07-2012 03:55 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply