I'm trying to get Garry's Mod to render a image, but RegenerateTextureBits isn't doing what it should ( yes i'm making a gmod module, no, it's [B]not about lua[/B]. )
[url]https://github.com/Leystryku/gm_cwin/blob/master/src/coolwindows.cpp[/url]
if i do if (x%2==0)
pixelWriter.WritePixel(255, 255, 255, 255);
else
pixelWriter.WritePixel(0, 0, 0, 255);
this happens
[t]http://i.imgur.com/eXDsyIJ.jpg[/t]
if i do the same for y this happens
[t]http://i.imgur.com/vWYLvZO.jpg[/t]
if i try drawing the window and a pixel at x5 y5
[t]http://i.imgur.com/eGnK0FE.jpg[/t]
i'd be grateful for any help :v
[t]http://i.imgur.com/JFjqpQy.png[/t]
The section you're looking for is linked [URL="http://facepunch.com/forumdisplay.php?f=65"]here[/URL]
[QUOTE=Karmah;48068580][t]http://i.imgur.com/JFjqpQy.png[/t]
The section you're looking for is linked [URL="http://facepunch.com/forumdisplay.php?f=65"]here[/URL][/QUOTE]
I don't wanna sound rude, but this isn't about lua at all.
it's about a c++ module.
that's why I put "source engine" in the thread, and linked to the source of the project.
[QUOTE=Karmah;48068580][t]http://i.imgur.com/JFjqpQy.png[/t]
The section you're looking for is linked [URL="http://facepunch.com/forumdisplay.php?f=65"]here[/URL][/QUOTE]
His links have a file extension of .cpp
I could have sworn that the extensions [I]were[/I] .lua but I didn't open the source, hence my reaction.
A little hasty on my part, but actual gmod stuff finds its way in here frequently, so I made a false assumption
Sorry, you need to Log In to post a reply to this thread.