Hi all, 

Can you please tell how does Agar integrates OpenGl?  AGAR already exists in 
the UEFI environment. I want to port OpenGL such that it is integrated as a 
part of Agar. 


Thanks 
Ritvik 

-----Original Message-----
>From: [email protected] [mailto:[email protected]] On 
>Behalf Of [email protected]
Sent: Thursday, January 17, 2013 1:30 PM
To: [email protected]
Subject: Agar Digest, Vol 44, Issue 1

Send Agar mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail231.csoft.net/mailman/listinfo/agar
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Agar digest..."


Today's Topics:

   1. Re: textbox scrollbars (Ben Collver)
   2. AGAR support for OpenGL in UEFI ([email protected])
   3. Need help to compile Ada-bindings on FreeBSD (Gustav Johansson)
   4. Re: Need help to compile Ada-bindings on FreeBSD
      (Gustav Johansson)
   5. Re: AG_Textbox is not taking any input (Newt)
   6. Re: AG_Textbox is not taking any input (JC)
   7. Re: AG_Textbox is not taking any input (Newt)


----------------------------------------------------------------------

Message: 1
Date: Sun, 02 Dec 2012 07:01:18 -0800
>From: Ben Collver <[email protected]>
To: [email protected]
Subject: Re: [Agar] textbox scrollbars
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hello,

The problem exists between the chair and the keyboard.  Instead of putting the 
text in the widget label, I should bind the textbox to a copy of the string.

Sorry for the noise,

-Ben

Ben Collver wrote:
> Good day,
>
> Attached is an example program that shows its own source code in a 
> textbox.  Also attached is a screenshot of the program output.  I am 
> using Agar SVN on Linux with SDL.  I expected a vertical scrollbar, 
> but there is none.  The horizontal scrollbar is visible.  I expected 
> the text to scroll horizontally, but it remains fixed when I move the 
> horizontal scrollbar.  Do you know of a working example that uses the 
> scrollbars in a textbox widget?
>
> Thank you,
>
> -Ben




------------------------------

Message: 2
Date: Sun, 6 Jan 2013 18:37:13 +0530
>From: <[email protected]>
To: <[email protected]>
Subject: [Agar] AGAR support for OpenGL in UEFI
Message-ID:
        <57f387182ecba34188e1ed8c7dab61dd09c5212...@blrx7mcdc203.amer.dell.com>
        
Content-Type: text/plain; charset="us-ascii"

Hi All,

Can you please tell does AGAR library support OpenGL implementation in UEFI 
environment? If not is it feasible to achieve the same?

Thanks
Ritvik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail231.csoft.net/pipermail/agar/attachments/20130106/455d6e2b/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 7 Jan 2013 08:10:29 +0100
>From: Gustav Johansson <[email protected]>
To: [email protected]
Subject: [Agar] Need help to compile Ada-bindings on FreeBSD
Message-ID:
        <cacvfohvq3v6u4wpnom+mjdso6oumtxojshuwsjome2gd-ha...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hi,

I'm trying to install libagar with Ada-bindings on a FreeBSD-9.1 machine. The 
library itself compiles and installs according to instructions without a hitch. 
The Ada-bindings are a different matter though.

As far as I can gather from the README files, I should download and install 
AdaSDL first, which I have done. The next step seems to be to run "make" in the 
ada-core folder, and this is where I get stuck...

<snip>
[~/sources/agar-1.4.1/ada-core] # make
...../check-deps
check-deps: error: C_String (http://coreland.ath.cx/code/c_string)
required but not located
check-deps: error: SYSDEPS module c_string-flags, file flags-c_string
check-deps: error: C_String (http://coreland.ath.cx/code/c_string)
required but not located
check-deps: error: SYSDEPS module c_string-libs-S, file libs-c_string-S
check-deps: info: See the documentation on SYSDEPS if you do not understand how 
to fix this problem
check-deps: info: http://coreland.ath.cx/code/sysdeps
*** [local] Error code 1
Stop in /root/sources/agar-1.4.1/ada-core.
<end snip>

I have no idea what this error means since I have never used "SYSDEPS"
before, and unfortunately the web-address that is referred to for instructions 
seems to be out. There is no server on the net called coreland.ath.cx that I 
can find.

Anybody knows how to proceed with this?

Best Regards,
Gustav



------------------------------

Message: 4
Date: Tue, 8 Jan 2013 09:43:50 +0000 (UTC)
>From: Gustav Johansson <[email protected]>
To: [email protected]
Subject: Re: [Agar] Need help to compile Ada-bindings on FreeBSD
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Hi,

managed to get past the error. I found the c_string dependency on io7m.com and 
after installing it I got further. I can now (after some modifications to the 
build system) compile and install the "ada-core" part.

I now get stuck at the "ada-gui" part because of a misssing file: agar-core- 
types.ads. This file does not exist in the libagar source, but searching 
through the older releases I found it in version 1.3.4. Later versions do not 
have it. Is there a reason for this? Or has it simple fallen out by mistake?

I am sincerely interested in getting the Ada-bindings to work but I have no 
experience in the type of build system used in the bindings. Anybody care to 
point me in the right direction?

Regards,
Gustav



------------------------------

Message: 5
Date: Wed, 16 Jan 2013 00:49:25 +0000 (UTC)
>From: Newt <[email protected]>
To: [email protected]
Subject: Re: [Agar] AG_Textbox is not taking any input
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

Tejaswin Macharla <tejaswin.m@...> writes:

> 
> 
> Hi,
> 
> I am using Agar 1.4.0 with SDL. Below is the code which displays the?
> textbox, but I am not able to enter any text. If I hold alt and then?
> press keys, some weird characters are shown in the textbox. Other?
> than that whatever key I press, nothing comes in the textbox.
> 
> AG_Textbox *textbox;
> char name[100];
> textbox = AG_TextboxNew(boxVert5,0,"Testing: "); //boxVert5 is a 
> AG_Box AG_TextboxSizeHintPixels (textbox, 100, 15); 
> AG_TextboxBindUTF8(textbox, name, sizeof(name));
> 
> Can anyone suggest any solution for this?
> 
> Thanks in advance,
> Tejaswin.
> 
> 
> 
> _______________________________________________
> Agar mailing list
> Agar@...
> http://libagar.org/lists.html
> 

It probably due to the inserted SDL events polluting the agar event quene.. You 
should write your custom event loop to correct a bit of agar's event 
interpretation(please refer to `agar- 
x.xx.x/demos/customeventloop/customeventloop.c' for more information).
In your event loop, you have to process the `key input' event like this:
......
 case AG_DRIVER_KEY_DOWN:
 case AG_DRIVER_KEY_UP:
      dev.data.key.ucs= (int)dev.data.key.ks;
      break;
......
  AG_ProcessEvent(NULL, &dev);
......
  Where `dev' is retrieved from the agar event quene.` dev.data.key.ucs= 
(int)dev.data.key.ks;' replace the misinterpreted Unicode character with the 
correctly interpreted ks.




------------------------------

Message: 6
Date: Wed, 16 Jan 2013 19:25:28 +0000 (GMT)
>From: JC <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Re: [Agar] AG_Textbox is not taking any input
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi and thanks, this solution works for me too, I had the same problem.

?
But then I get QWERTY minus caracters in the Agar GUI (I have an AZERTY 
keyboard). The solution I found is :
??? * To put "SDL_EnableUNICODE(SDL_ENABLE);" somewhere in the SDL 
initialization ??? * To not use "dev.data.key.ucs= (int)dev.data.key.ks;" but 
"ag_event.data.key.ucs = (int)sdlEvent->key.keysym.unicode;" in my custom event 
loop


It seem's it works fine now :)


J-C


________________________________
 De?: Newt <[email protected]>
??: [email protected]
Envoy? le : Mercredi 16 janvier 2013 1h49
Objet?: Re: [Agar] AG_Textbox is not taking any input
 
Tejaswin Macharla <tejaswin.m@....> writes:

> 
> 
> Hi,
> 
> I am using Agar 1.4.0 with SDL. Below is the code which displays the?
> textbox, but I am not able to enter any text. If I hold alt and then?
> press keys, some weird characters are shown in the textbox. Other?
> than that whatever key I press, nothing comes in the textbox.
> 
> AG_Textbox *textbox;
> char name[100];
> textbox = AG_TextboxNew(boxVert5,0,"Testing: "); //boxVert5 is a 
> AG_Box AG_TextboxSizeHintPixels (textbox, 100, 15); 
> AG_TextboxBindUTF8(textbox, name, sizeof(name));
> 
> Can anyone suggest any solution for this?
> 
> Thanks in advance,
> Tejaswin.
> 
> 
> 
> _______________________________________________
> Agar mailing list
> Agar@...
> http://libagar.org/lists.html
> 

It probably due to the inserted SDL events polluting the agar event quene.. You 
should write your custom event loop to correct a bit of agar's event 
interpretation(please refer to `agar- 
x.xx.x/demos/customeventloop/customeventloop.c' for more information).
In your event loop, you have to process the `key input' event like this:
......
case AG_DRIVER_KEY_DOWN:
case AG_DRIVER_KEY_UP:
? ? ? dev.data.key.ucs= (int)dev.data.key.ks; ? ? ? break; ....
? AG_ProcessEvent(NULL, &dev);
......
? Where `dev' is retrieved from the agar event quene.` dev.data.key.ucs= 
(int)dev.data.key.ks;' replace the misinterpreted Unicode character with the 
correctly interpreted ks.


_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail231.csoft.net/pipermail/agar/attachments/20130116/80456ca4/attachment-0001.html>

------------------------------

Message: 7
Date: Thu, 17 Jan 2013 08:00:02 +0000 (UTC)
>From: Newt <[email protected]>
To: [email protected]
Subject: Re: [Agar] AG_Textbox is not taking any input
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

JC You are brilliant! 
Just add `SDL_EnableUNICODE(SDL_ENABLE);' before agar's initialization, and 
everything is working perfectly well.
It corrects the SDL's event interpretation, and nothing have to be corrected in 
the event loop. 



------------------------------

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html


End of Agar Digest, Vol 44, Issue 1
***********************************

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to