Pixilang v3.4.7

Pixilang programming language
Post Reply
User avatar
NightRadio
Site Admin
Posts: 2808
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Pixilang v3.4.7

Post by NightRadio » Fri Sep 27, 2013 11:52 pm

Pixilang updated to version 3.4.7.
http://www.warmplace.ru/soft/pixilang

What is new:
  • new built-in global variable UI_SCALE - use it to scale your UI elements; for example: button_size = PPI * UI_SCALE * 0.5;
  • PIXILANG_VERSION format has been changed;
  • OP_COPY is now also available for op_cn();
  • new data processing operation for the op_cn(): OP_SUB2 (subtraction with reverse order of the operands (N - C1[ i ]));
  • new data processing operations for the op_cc(): OP_EXCHANGE, OP_BMUL (if C2[ i ] == 0 { C1[ i ] = 0 }), OP_COMPARE;
  • new data processing operations for the op_cc() and op_cn(): OP_COPY_LESS (copy only if C1[ i ] < C2[ i ]), OP_COPY_GREATER;
  • new data processing operation for the op_ccn(): OP_MUL_RSHIFT (multiplication with bitwise right shift);
  • now a container can be resized with interpolation; example: resize( img, 100, 100, PIXEL, RESIZE_INTERP2 );
  • added flags for the resize() function: RESIZE_INTERP1 (rough), RESIZE_INTERP2 (linear), RESIZE_UNSIGNED_INTERP2, RESIZE_COLOR_INTERP1, RESIZE_COLOR_INTERP2;
  • new option for the load() function: LOAD_FIRST_FRAME;
  • new JPEG saving options (flags): JPEG_TWOPASS, JPEG_H1V1, JPEG_H2V1, JPEG_H2V2; see details in examples/graphics/save_jpeg.pixi;
  • new functions: zlib_pack(), zlib_unpack() - for container compressing/decompressing using zlib;
  • new function: show_memory_debug_messages( enable );
  • new functions: color_gradient(), gradient();
  • new function: split_ycbcr() - same as split_rgb() but for YCbCr conversion;
  • new function: fprintf() - print formatted output to the stream (opened by fopen() or fopen_mem());
  • new functions: logf() - send formatted output to the log buffer; get_log() - get the log buffer;
  • new functions: set_disk0(), get_disk0(); see details in examples/graphics/virtual_disk.pixi;
  • new functions: fload() and fsave() for loading and saving from/to the stream (which is opened by fopen() or fopen_mem());
  • new function: fopen_mem() - open container like a file;
  • new function: setxattr() (posix);
  • new function: gl_draw_arrays() - hybrid of OpenGL functions glColor4ub(), glBindTexture(), glVertexPointer(), glColorPointer(), glTexCoordPointer(), glDrawArrays();
  • new function: gl_blend_func() - full analog of the OpenGL function glBlendFunc() (specify pixel arithmetic);
  • added ZLib constants (compression levels): Z_NO_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION, Z_DEFAULT_COMPRESSION;
  • added OpenGL constants (modes) for the gl_draw_arrays(): GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES;
  • added OpenGL constants (operations) for the gl_blend_func(): GL_ONE, GL_ZERO, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR etc.;
  • new console example: fopen_mem;
  • new graphics examples: save_jpeg_to_memory, rotozoom4, rotozoom5, rotozoom6, ffmpeg_video_effects/zoom, log_messages, split_ycbcr, split_ycbcr2, gradient2, gradient3, zlib, fft2, gamma_correction;
  • new OpenGL graphics example: primitives, blend_modes;
  • new libraries (lib directory): ffmpeg_video_export, ffmpeg_video_import, pixitracker_audio_engine, pseudo_hdr, gl_primitives, gamma_correction;
  • support of JACK Audio Connection Kit (for iOS and Linux);
  • bugs fixed.

pasbel
Posts: 18
Joined: Mon Jul 02, 2012 2:19 pm

Re: Pixilang v3.4.7

Post by pasbel » Sun Sep 29, 2013 10:53 am

hi !
With a project witch works with v3.4.6, I've a message "local variable $index is not initialized" (in a function) with v3.4.7 when I load the same project.

User avatar
NightRadio
Site Admin
Posts: 2808
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Pixilang v3.4.7

Post by NightRadio » Sun Sep 29, 2013 11:43 am

pasbel,
what project exactly?
v3.4.6 has no local variable checking code. So if you get this message now - this mean that you are trying to access not initialized $index variable :)

pasbel
Posts: 18
Joined: Mon Jul 02, 2012 2:19 pm

Re: Pixilang v3.4.7

Post by pasbel » Sun Sep 29, 2013 12:51 pm

Perhaps I had a but, I re-watch my code...
Thanks
Pascal

Post Reply