Nou set de fotos: La India!
Que aprofiti!
jo també puc tenir un blog!!
Toma pelotazo!
This fourth beta release of the iPhone SDK includes a complete set of tools, compilers, frameworks, and documentation for creating iPhone OS applications. These tools include the Xcode IDE, and the Instruments analysis tool, among many others. With this software you can develop applications that run on iPhone and iPod touch using the included iPhone Simulator."per fi!!!
Hi all!!! After some weeks developing and doing some research with Cocoa and xcode, I've some cool screenshot to show!!

Etiquetes de comentaris: code
Etiquetes de comentaris: code
Just a fast code lesson:
unsigned char *gfx_data;
int gfx_width = 256;
int gfx_heigth = 256;
int gfx_samplespp = 3;
gfx_data = malloc (gfx_width*gfx_heigth*gfx_samplespp);
int i=0;
int max = gfx_width*gfx_heigth*gfx_samplespp;
for (i=0; i<(max);i+=3)
{
// Do your demoscene-fancy effect here
int valor = sin((float)i*4.0/(float)(gfx_width*gfx_heigth))*255.0;
if (valor<0) valor="valor*-1;
gfx_data[i]= valor;
}
// Convert buffer to NSBitmapImageRep
NSBitmapImageRep* bmp = [[NSBitmapImageRep alloc]initWithBitmapDataPlanes:&gfx_data
pixelsWide: gfx_width
pixelsHigh: gfx_heigth
bitsPerSample: 8
samplesPerPixel: gfx_samplespp
hasAlpha: NO
isPlanar: NO
colorSpaceName: NSCalibratedRGBColorSpace
bytesPerRow: (gfx_width*gfx_samplespp)
bitsPerPixel: 24];
// Store the NSBitmapImageRep in a NSImage structure
NSImage *img = [NSImage alloc];
[img addRepresentation:bmp];
// Set the NSImage into the NSImageView (IVFinaltexture)
if ([IVFinaltexture image]!=nil)
[[IVFinaltexture image] release];
[IVFinaltexture setImage:img];
//free (gfx_data); // WTF! system crashes if I uncomment this!
[bmp release];
[img release];

Etiquetes de comentaris: code
Avui he escoltat a la radio que a TV3 emeten avui la MÍTICA sèrie Dr. Who!!!



Etiquetes de comentaris: sci-fi
