Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [iOS] ScreenShot from EAGLView

Author
Message
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 29th Aug 2013 07:29 Edited at: 29th Aug 2013 20:44
Ok let's start to change some things...
Remember that to have this code work on the fly you must use my template, but you can take the base function to do what you need.

template.cpp
In the Loop change the simple agk:Sync() with those lines:


Now the real OpenGL get pixel function
The Function


Now you have an UIImage to use where you want.
Remember : don't call it from a thread that is not the AppGameKit thread or you will lose the Swap and the image will be white or black!!

Enjoy!!!

Long life to Steve!
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 29th Aug 2013 17:58 Edited at: 29th Aug 2013 19:25
Solved......

Long life to Steve!
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 29th Aug 2013 18:33
Ok i solved.
I will post my code to help the other user on IOS.
Now we have screenshots!

Long life to Steve!
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 29th Aug 2013 19:07
Nobody need it?
If someone need the code ask me.
I don't want to share all i solve if nobody use iOS.

Long life to Steve!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Aug 2013 19:34
You didn't give anyone time to read your post before you thought no one was interested. Not everyone is checking the forums every 5 minutes (I might go as long as an hour at a time if heavily involved with something).

I think the code might very useful to people. It certainly sounds interesting.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 29th Aug 2013 19:57
Well it was a day and none answered...
i will post it doing my best to explain how to use it.

Long life to Steve!
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 29th Aug 2013 20:25
Any code you wish to share would certainly be helpful to someone now or in the future. Thanks Gekko!
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 29th Aug 2013 20:45
Ok look the first post and Enjoy!!!


Long life to Steve!
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Aug 2013 20:58
Quote: "Well it was a day and none answered..."

Really? It looks like only about half an hour from your 'Ok i solved.' post to the 'Nobody need it?' post, based on the time stamps at the top of each post.

Maybe your posts didn't actually appear here when you posted them 'there' (where ever 'there' is for you).

What file does the 'GLScreenShot()' go in?

I'm guessing this is so that you can use the AppGameKit engine for some stuff, and then further manipulate it in some Objective C code.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 29th Aug 2013 21:12
The time stamp here at least says the posting was tomorrow!

I'll send this and see when I'm going to send it...

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 29th Aug 2013 21:16
Yip - I sent that tomorrow at 02:12, which mean I'm not actually in Yorkshire in the UK, but in China!

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Aug 2013 21:57 Edited at: 29th Aug 2013 22:02
Curious? Your first post shows a time stamp of "29th Aug 2013 21:12" in my browser. And the second shows "29th Aug 2013 21:16".

I am posting this at 14:56 US EDT.

Let's see what we get.

EDIT: It shows up as 21:57. (And my atomic clock is one minute slow.) That shows me two time zones west of England.

What time zone is being used by the server the TGC forums is hosted on?

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 29th Aug 2013 23:36
Fun, isn't it?

I'm in the UK. You are in Virginia, which is 5 hours behind me. The forum clock is showing times as 7 hours ahead of me, and 5 hours ahead of you. Interestingly, 5 + 7 = 12. The server is confused. I'm confused.

Your last post shows 30th August edited at 03:20.

From which I conclude that the forum code is rubbish at converting to local time.

I love other people's bugs!

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 29th Aug 2013 23:54
Quote: "I love other people's bugs!"

Except when I have to fix them, I agree with you.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 30th Aug 2013 00:28
xGEKKOx always very useful and creative posts.

unfortunately i am using the standard templates, as with all the beta changes it's hard to keep up and always fix every new version
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 30th Aug 2013 00:41 Edited at: 30th Aug 2013 00:42
^ If you go into your Profile, you can set your local timezone there so the times are accurate (i.e., -6 for Central Time). The time is accurate for me.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 30th Aug 2013 00:56 Edited at: 30th Aug 2013 00:57
I thought I had set it properly before. I just did again. Let's see what time shows up now.

EDIT: It now shows my current time. I bet I have to adjust it when we get out of Daylight Savings Time (and who gets anything from this supposed savings?).

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 30th Aug 2013 02:21 Edited at: 30th Aug 2013 02:23
Well the function is for the cpp so in c++
Nice ehhhh, mixing agk with objc ??
Ahah, this is why they have to remove from the light version all the extras.
On objc c with agk and c++ you can do anything!

The function isn't mine, but from apple with some fix here and there copied from other code.
I think you need one of my new template, bad boyyyyyys!! Ahahah

Long life to Steve!
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 30th Aug 2013 05:32 Edited at: 2nd Sep 2013 08:53
[OFF-TOPIC]
Speaking of other peoples bugs.....

edit: \/ it's a TGC Forum bug, it doesn't close the text options properly so if you leave them open, it'll modify your sig.
ie, end a post with [ center][ quote]

[center][quote]


The NEW, awesomest app on Google Play
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 31st Aug 2013 02:27
I don't understand this off topic, maybe the moderator can delete it?

Long life to Steve!

Login to post a reply

Server time is: 2024-11-24 20:31:37
Your offset time is: 2024-11-24 20:31:37