Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualdonutsupernova

Posted 25 March 2012 - 09:09 PM

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

#2donutsupernova

Posted 25 March 2012 - 08:58 PM

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

#1donutsupernova

Posted 25 March 2012 - 08:57 PM

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

PARTNERS