Re: [Factor-talk] OpenGL 3.3 + Factor, the result

2021-06-22 Thread George Cherevichenko
Else we have an error "unknown-image-extension"
https://www.mail-archive.com/factor-talk@lists.sourceforge.net/msg08655.html

вт, 22 июн. 2021 г. в 22:45, John Benediktsson :

> Why do you have to use platform specific image loader?
>
> On Tue, Jun 22, 2021 at 12:44 PM George Cherevichenko <
> george.chereviche...@gmail.com> wrote:
>
>> https://pastebin.com/faGJUH6v
>> https://www.imagevenue.com/ME13J21P
>> Put it to a new vocab "sphere" and run. If you will use deploy-tool,
>> change the line163 (write "1.jpg" instead of "vocab:sphere/1.jpg") and add
>> one of the lines
>> USE: images.loader.gdiplus (for Windows)
>> USE: images.loader.gtk(for Linux)
>> USE: images.loader.cocoa(for MacOS)
>> And put 1.jpg to the folder with the result!
>> ___
>> Factor-talk mailing list
>> Factor-talk@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] OpenGL 3.3 + Factor, the result

2021-06-22 Thread John Benediktsson
Why do you have to use platform specific image loader?

On Tue, Jun 22, 2021 at 12:44 PM George Cherevichenko <
george.chereviche...@gmail.com> wrote:

> https://pastebin.com/faGJUH6v
> https://www.imagevenue.com/ME13J21P
> Put it to a new vocab "sphere" and run. If you will use deploy-tool,
> change the line163 (write "1.jpg" instead of "vocab:sphere/1.jpg") and add
> one of the lines
> USE: images.loader.gdiplus (for Windows)
> USE: images.loader.gtk(for Linux)
> USE: images.loader.cocoa(for MacOS)
> And put 1.jpg to the folder with the result!
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] OpenGL 3.3 + Factor, the result

2021-06-22 Thread George Cherevichenko
https://pastebin.com/faGJUH6v
https://www.imagevenue.com/ME13J21P
Put it to a new vocab "sphere" and run. If you will use deploy-tool, change
the line163 (write "1.jpg" instead of "vocab:sphere/1.jpg") and add one of
the lines
USE: images.loader.gdiplus (for Windows)
USE: images.loader.gtk(for Linux)
USE: images.loader.cocoa(for MacOS)
And put 1.jpg to the folder with the result!
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Am I in the listener?

2021-06-22 Thread John Benediktsson
You can tell if you are running with the ui versus the command-line with
"ui-running?".

If you want to see if the listener is open, you can find it's window:

[ listener-gadget? ] find-window

And if you want to get a listener, opening one if it is not open, just call:

get-listener




On Tue, Jun 22, 2021 at 8:33 AM George Cherevichenko <
george.chereviche...@gmail.com> wrote:

> How can my program know is it running in the listener or as .exe?
>
> George
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


Re: [Factor-talk] Am I in the listener?

2021-06-22 Thread Abraham Palmer
Is it cheating to just use the "environment" vocabulary and pass in an
indicator that way? I'm new with Factor so don't know of any fancier ways
to reflect on the source/type of the running code.
--Abraham

On Tue, Jun 22, 2021 at 11:32 AM George Cherevichenko <
george.chereviche...@gmail.com> wrote:

> How can my program know is it running in the listener or as .exe?
>
> George
> ___
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>


-- 
http://boxturtlebakery.com
(919)357-6034
abra...@boxturtlebakery.com
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] Am I in the listener?

2021-06-22 Thread George Cherevichenko
How can my program know is it running in the listener or as .exe?

George
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk