Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Drawing an array as a texture

Started by donutsupernova Mar 26, 2012 at 2:57 AM 0 replies 1.2k views
Original Post
donutsupernova
donutsupernova
How do you convert an int array into a texture on the Android NDK?
So for example


int blackBox= {0,0,0,0,0,0,0,0}

where the 4 elements are the R,G,B, and A values
so it would be a simple two pixel black box

Some sample code would be greatly appreciated

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.