Recent

Author Topic: ZenGL 0.2 RC6  (Read 17710 times)

Andru

  • Full Member
  • ***
  • Posts: 112
ZenGL 0.2 RC6
« on: January 22, 2011, 11:14:46 pm »
New version of cross-platform game development library was released. As always links for downloading are available on official website. Now there are archives with binaries for different OS's.
I hope this is the last release candidate before stable version 0.2 with frozen API. So, use it and report bugs if you find :)

Changelog:
- [Direct3D]fixed problem with render targets when using FreePascal 2.4.x
- [Direct3D]fixed tex_SetMask, wich was broken in RC5
- [Direct3D]fixed problems with camera and render targets
- [OpenGL]fixed slow terminating in some cases
- [Linux]DIRECTORY_HOME will return $HOME/.config/
- [Windows]timers will stop when window is moving(with enabled APP_USE_AUTPAUSE)
- [Windows]rendering will not stop when window is moving(with disabled APP_USE_AUTPAUSE)
- [MacOS X]fixed problem with wnd_SetCaption when using dylib
- [MacOS X]removed deprecated SetWTitle from wnd_SetCaption
- [MacOS X]DIRECTORY_HOME will return /Users/$username/Library/Preferences
- [MacOS X]all resources will checks first in App/Contents/Resources
- [MacOS X]log-file now puts near bundle
- optimized all functions which loads resources from memory
- fixed potential memory leak in font_LoadFromFile and font_LoadFromMemory
- fixed bug with scaling of text(the right bottom corner)
- PasJPEG replaced by original libjpeg8b(speed up to 5x for FreePascal and USE_LIBJPEG, by default enabled for GNU/Linux and MacOS X)
- PasZLib was replaced by original zlib 1.2.5(speed up to 1.5x)
- optimizaed loading of ini-files
- cam2d_Set now works like cam2d_Apply, but doesn't applied automatically when render target is set. cam2d_Apply was removed
- now ini_LoadFromFile and file_Open returns a result
- argument Directory was added to file_Exists for checking if directory exists
- now rtarget_Add is more "safe"
- behavior of rtarget_Set when use camera was changed, now camera works only for TARGET_SCREEN, for TARGET_TEXTURE it must be set manually
- changed declaration of ini_ReadKeyStr, key_GetText, file_GetName, file_GetExtension and file_GetDirectory
- file_Find now sorts the list
- now mouse_X/mouse_Y returns coordinates using global mouse position for all OS's
- added new functions: cam2d_Get and sengine2d_Get
- added argument SeparateAlpha to fx_SetBlendMode
- improved particles subsystem
- added loading of emitters from files
- added new constants for zgl_Get: ZGL_VERSION, ZGL_VERSION_STRING, ZGL_VERSION_DATE and MANAGER_EMITTER2D
- added header file of Chipmunk and simple demo

The one known bug is broken 64-bit binaries for Windows.
« Last Edit: January 23, 2011, 12:58:14 am by Andru »

matthius

  • Full Member
  • ***
  • Posts: 175
  • Creating VRAD...
    • LIBERLOG - Développement rapide
Re: ZenGL 0.2 RC6 - Compiling
« Reply #1 on: January 24, 2011, 11:24:31 am »
Your new version seems using another more library.

I have installed these two linux libraries :
    * libgl1-mesa-dev
    * libglu1-mesa-dev

But it is not compiling resources on the 0.2 RC6 version of zengl.

Can verify you new functions and their libraries ?
« Last Edit: January 24, 2011, 11:28:42 am by matthius »
M. GIROUX
13 rue Tanguy PRIGENT
35000 RENNES - France
http://liberlog.fr

Andru

  • Full Member
  • ***
  • Posts: 112
Re: ZenGL 0.2 RC6
« Reply #2 on: January 24, 2011, 12:27:05 pm »
I just forgot about one new moment. If you trying to compile your project(wich was started with 0.2 RC5), so you must add additional paths. For Lazarus:
Code: [Select]
lib/jpeg/($TargetCPU)-($TargetOS)
lib/ogg/($TargetCPU)-($TargetOS)
lib/zlib/($TargetCPU)-($TargetOS)
lib/msvcrt/($TargetCPU) // for Windows only

TargetCPU and TargetOS are standard macroses. Directory lib can be found in archive.

For FreePascal see how I did this in my Makefiles, or do the same as for Lazarus but writing paths directly replacing ($TargetCPU) by i386, x86_64 or powerpc, and ($TargetOS) by linux, win32, win64 or darwin. For Delphi there is only one new path - lib/zlib/delphi.

If you can't compile any standard demo - attach full log from FreePascal here(or on pastebin.com), please :)
« Last Edit: January 24, 2011, 01:03:31 pm by Andru »

nisses

  • Newbie
  • Posts: 6
Re: ZenGL 0.2 RC6
« Reply #3 on: January 25, 2011, 02:26:30 pm »
unusable for new users. the is no project documentation on official website.

BlueIcaro

  • Hero Member
  • *****
  • Posts: 820
    • Blog personal
Re: ZenGL 0.2 RC6
« Reply #4 on: January 25, 2011, 03:30:20 pm »
unusable for new users. the is no project documentation on official website.

I think so, it's a pity, I want to start with graphics, with this nice library, but I don't know how.

/BlueIcaro

Andru

  • Full Member
  • ***
  • Posts: 112
Re: ZenGL 0.2 RC6
« Reply #5 on: January 25, 2011, 06:25:06 pm »
Quote
unusable for new users. the is no project documentation on official website.
There are well commented examples, so... this library is not for you, as many others, only if you are a noob without programming skills, otherwise examples will help you :) Examples are showing all basic stuff, anything else can be found in header(all functions are simple and have "logical" names) or you can just ask me, or use forum for a while. I hope next release will be with documentation, but I'm not sure if it will be full for users who speaks English.
« Last Edit: January 25, 2011, 06:34:27 pm by Andru »

nisses

  • Newbie
  • Posts: 6
Re: ZenGL 0.2 RC6
« Reply #6 on: January 26, 2011, 05:36:58 am »
Quote
unusable for new users. the is no project documentation on official website.
There are well commented examples, so... this library is not for you, as many others, only if you are a noob without programming skills, otherwise examples will help you :) Examples are showing all basic stuff, anything else can be found in header(all functions are simple and have "logical" names) or you can just ask me, or use forum for a while. I hope next release will be with documentation, but I'm not sure if it will be full for users who speaks English.

I know all the things you said. But imagine learning Win32API concepts and abstracts just by studying examples. Every good project has its docs. During my life I've seen plenty of Game/Gfx programming libs. Most of them died. Study the reasons and then we can talk.

Andru

  • Full Member
  • ***
  • Posts: 112
Re: ZenGL 0.2 RC6
« Reply #7 on: January 26, 2011, 07:24:00 am »
Quote
But imagine learning Win32API concepts and abstracts just by studying examples.
This comparison is little bit incorrect. WinAPI is more difficult and so on. But yeah, I understand importance of documentation.

Quote
Every good project has its docs.
Every completed "good project" has it docs. ZenGL is in development, so... :)

PS: this is so interesting, that you have registered here to say me this obvious info... or this is warning for all others? )
« Last Edit: January 26, 2011, 07:28:24 am by Andru »

matthius

  • Full Member
  • ***
  • Posts: 175
  • Creating VRAD...
    • LIBERLOG - Développement rapide
Re: ZenGL 0.2 RC6 bug found
« Reply #8 on: January 26, 2011, 12:06:31 pm »
Ok here is the bug for Lazarus on Linux :

The .res file is not necessary, just apply these line from res inclusion :
{$IFNDEF FPC}
{$R *.res}
{$ENDIF}
M. GIROUX
13 rue Tanguy PRIGENT
35000 RENNES - France
http://liberlog.fr

Andru

  • Full Member
  • ***
  • Posts: 112
Re: ZenGL 0.2 RC6
« Reply #9 on: January 26, 2011, 12:42:01 pm »
Quote
Ok here is the bug for Lazarus on Linux :
Oh, seems I forgot to modify demos source code, because ZenGL by itself uses this:
Code: [Select]
{$IFDEF WINDOWS}
  {$R *.res}
{$ENDIF}

Ok, maybe this weekend I will release hotfix, because there are some other problems.

nisses

  • Newbie
  • Posts: 6
Re: ZenGL 0.2 RC6
« Reply #10 on: January 27, 2011, 03:39:03 am »
PS: this is so interesting, that you have registered here to say me this obvious info... or this is warning for all others? )

As usual You are wrong - I have been registered since Feb 2010.

Andru

  • Full Member
  • ***
  • Posts: 112
Re: ZenGL 0.2 RC6
« Reply #11 on: January 27, 2011, 06:11:05 am »
Quote
As usual You are wrong - I have been registered since Feb 2010.
Yeah, yeah, "as usual"(interesting opinion about me), but why you are "kept quiet" almost a year? Or I can be a captain obvious and answer to myself - "There were no questions which interested me and no interesting topics"? :)
« Last Edit: January 27, 2011, 06:22:20 am by Andru »

Gintas

  • Jr. Member
  • **
  • Posts: 71
    • Developer's Diary
Re: ZenGL 0.2 RC6
« Reply #12 on: February 04, 2011, 09:47:01 pm »
I think this library needs more examples like game states,collision and GUI system ones or a just a basic game as example.

I am stuck with trying to move sprite using joystick axis. Any example would be great :)

Andru

  • Full Member
  • ***
  • Posts: 112
Re: ZenGL 0.2 RC6
« Reply #13 on: February 06, 2011, 08:45:28 pm »
Gintas
demo02 shows how to handle joystick and which values can be got :) joy_AxisPos returns axis position in range -1.0..1.0.

Gintas

  • Jr. Member
  • **
  • Posts: 71
    • Developer's Diary
Re: ZenGL 0.2 RC6
« Reply #14 on: February 07, 2011, 09:55:04 pm »
Gintas
demo02 shows how to handle joystick and which values can be got :) joy_AxisPos returns axis position in range -1.0..1.0.

Yep,using the values of JOY_AXIS_X and JOY_AXIS_Y works for me.

 

TinyPortal © 2005-2018