Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Function to create blank coloured images

Author
Message
Mr Tank
21
Years of Service
User Offline
Joined: 25th Nov 2002
Location: United Kingdom
Posted: 28th Sep 2007 23:22
This probably works in DB(C) too, but colour object does too.

In DBP, colour object is a bit bizarre, and unlit objects are grey for some reason. Therefore i use single pixel textures. Using the following function is easier than making them in mspaint!



SUPER BADASS SPACESHIP X: WEBSITE
FORUM TOPIC
Mr Tank
21
Years of Service
User Offline
Joined: 25th Nov 2002
Location: United Kingdom
Posted: 4th Oct 2007 04:27
After discovering the joys of memblocks, i've made a better one. Not only are memblocks hellaciously fast, you can also make images with alpha. This should illustrate.
Credit for the rgba function goes to Aaron Miller. His snippet is here: http://forum.thegamecreators.com/?m=forum_view&t=113560&b=6



SUPER BADASS SPACESHIP X: WEBSITE
FORUM TOPIC

Login to post a reply

Server time is: 2024-11-22 13:22:10
Your offset time is: 2024-11-22 13:22:10