VicToMeyeZR Posted December 30, 2009 Posted December 30, 2009 I am trying to find the command to load a 2D image... I see there is Draw...... for drawing shapes, etc., but if you just want to load a 2D image, how would you do that? Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
macklebee Posted December 30, 2009 Posted December 30, 2009 LoadTexture to load texture DrawImage to draw loaded texture Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
VicToMeyeZR Posted December 30, 2009 Author Posted December 30, 2009 yeah, I was trying that one, and I just get access violation. Maybe my format... I tried a PNG. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
macklebee Posted December 30, 2009 Posted December 30, 2009 yeah, I was trying that one, and I just get access violation. Maybe my format... I tried a PNG. could be... just remember to load the dds first then draw it Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
VicToMeyeZR Posted December 30, 2009 Author Posted December 30, 2009 ok, so bottomgui=LoadMaterial("abstract::DDS") DrawImage(bottomgui,0,0,1024,32) kind of like that? Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
Rick Posted December 30, 2009 Posted December 30, 2009 yeah, I was trying that one, and I just get access violation. Maybe my format... I tried a PNG. Yeah, I think it has to be a dds file. Try: bottomgui=LoadTexture("abstract::myimage.dds") DrawImage(bottomgui,0,0,1024,32) And make sure it's right before the Flip() command or inside a flip hook. Quote
VicToMeyeZR Posted December 30, 2009 Author Posted December 30, 2009 perfect. Thank you rick. Not sure why I was putting LoadMaterial. lol yes function DrawOverlay() SetBlend(1) bottomgui=LoadTexture("abstract::Bottom.dds") DrawImage(bottomgui,0,736,1024,32) SetBlend(0) end AddHook("Flip",DrawOverlay) ahh, the beginnings of my HUD. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
VicToMeyeZR Posted December 31, 2009 Author Posted December 31, 2009 I know it ain't much, but its a lot for me. (Good thing I got a good 2D designer on my side. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.