Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Decals/Custom Models
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#11
RE: Decals/Custom Models

When you are drawing an image onto a terminal from a texture (i.e. a DDS file), you need to specify that the image is a texture using eImGuiGfx_Texture when you put it into the ImGui_DoImage function. Otherwise, it will default to thinking the image is an image file, and it won't render properly (if at all).

void terminal_OnGui(const tString&in asEntityName, float afTimeStep)
{
    ImGui_DoImageCorrectAspect(cImGuiGfx("aries_logo", eImGuiGfx_Texture), cVector3f(25, 25, 0), cVector2f(800, 800));
}

[Image: SixNRLY.jpg]
06-22-2016, 08:30 PM
Find


Messages In This Thread
Decals/Custom Models - by Hypercube - 06-21-2016, 05:57 AM
RE: Decals/Custom Models - by TiManGames - 06-21-2016, 08:38 AM
RE: Decals/Custom Models - by Abion47 - 06-21-2016, 06:47 PM
RE: Decals/Custom Models - by A.M Team - 06-21-2016, 06:56 PM
RE: Decals/Custom Models - by Hypercube - 06-22-2016, 12:27 AM
RE: Decals/Custom Models - by Hypercube - 06-25-2016, 02:20 AM
RE: Decals/Custom Models - by Abion47 - 06-21-2016, 10:05 PM
RE: Decals/Custom Models - by Abion47 - 06-22-2016, 12:50 AM
RE: Decals/Custom Models - by Hypercube - 06-22-2016, 01:23 AM
RE: Decals/Custom Models - by Abion47 - 06-22-2016, 01:47 AM
RE: Decals/Custom Models - by Hypercube - 06-22-2016, 02:09 AM
RE: Decals/Custom Models - by Abion47 - 06-22-2016, 08:30 PM
RE: Decals/Custom Models - by Hypercube - 06-22-2016, 08:37 PM
RE: Decals/Custom Models - by TiManGames - 06-25-2016, 11:07 PM
RE: Decals/Custom Models - by Hypercube - 06-25-2016, 11:35 PM
RE: Decals/Custom Models - by TiManGames - 06-26-2016, 09:46 AM
RE: Decals/Custom Models - by Abion47 - 06-25-2016, 11:50 PM
RE: Decals/Custom Models - by A.M Team - 06-29-2016, 04:08 PM
RE: Decals/Custom Models - by Abion47 - 06-29-2016, 06:19 PM
RE: Decals/Custom Models - by Hypercube - 06-29-2016, 07:21 AM
RE: Decals/Custom Models - by TiManGames - 06-29-2016, 02:33 PM
RE: Decals/Custom Models - by Hypercube - 06-29-2016, 04:49 PM



Users browsing this thread: 1 Guest(s)