Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ChronicRat

Pages: 1 [2] 3 4 ... 22
16
General / Re: Combine exe with openal32.dll
« on: August 06, 2015, 08:38:43 am »
It's simple with OpenAL. I don't remember exactly, (m.b. it even has flags to it) you just need to redfine function's declaration EXPORT (or something like this) macro.

17
Python / Re: Russian problems :)
« on: July 29, 2015, 11:33:45 am »

18
General discussions / Re: Android and iOS ports available for testing
« on: July 22, 2015, 09:24:11 pm »
Maybe it's possible to inject the code at runtime. :)
I think it's possible.
https://community.oracle.com/thread/2298550

19
General discussions / Re: Android and iOS ports available for testing
« on: July 22, 2015, 04:10:34 pm »
But SFML has NativeActivty. This method overrides it. Be sure, I tested it before posting here. =) You have to create subfolder 'src/com/company/application', AppActivity.java there - and it will work. Especially it can be easily done with nVidia AndroidWorks.
upd: Well, I'm not 100% sure about String method 'codeAtPoint', but the string value of getCharacters is absolutly correct - it contains unicode char of pressed key.

20
General discussions / Re: Android and iOS ports available for testing
« on: July 22, 2015, 01:19:28 pm »
Btw, to get unicode (non-english, while it's impossible in pure NDK) value use Java:
public class AppActivity extends NativeActivity
{
        // transfer unicode value to C++
        public static native void UnicodeValueCPP(int value);

        // we are using this to catch non-ascii chars (yes, it is impossible in NDK)
        @Override
        public boolean dispatchKeyEvent(KeyEvent event)
        {
                String chars = event.getCharacters();

                if (chars != null && !chars.isEmpty())
                {
                        UnicodeValueCPP(chars.codePointAt(0));
                }
                return super.dispatchKeyEvent(event);
        }
};
 
You just need to change in manifest file android.app.NativeActivity to .AppActivity.

21
SFML projects / Re: Testing out real-time (GLSL) raytracing
« on: July 16, 2015, 07:58:39 am »
Cool!

22
SFML projects / Re:creation - a top down action rpg about undeads
« on: July 08, 2015, 08:53:23 pm »
Quote
Quite a difference, don't you think?
What was changed? =) Ah, flowers, yes, much better.

23
SFML projects / Re: pseuthe - casual survival game
« on: June 30, 2015, 09:44:14 pm »
Awesome! My english dictionary is too short to explain my feeling about it.

24
turns out that I'm an idiot
The main cause of our bugs. =)

25
General / Re: What about memory leaks?
« on: June 11, 2015, 04:13:16 pm »
Thanks, Nexus, great "debriefing".

26
SFML projects / Re:creation - a top down action rpg about undeads
« on: June 10, 2015, 11:28:52 am »
You're tricky! =)

27
General / Re: What about memory leaks?
« on: June 06, 2015, 10:09:32 am »
 :o Looks like a holy war here. =) I think that use of smart or raw (or mix like I do) pointers is a private matter. But, I still think that newbie must begin from raw pointers.

28
General discussions / Re: Android and iOS ports available for testing
« on: June 05, 2015, 08:31:51 am »
Is it possible to use more than one Java VM in the app? I don't know why. =) Well, I think that static "JavaEnvironment" is good enough if there is only one JVM.

29
General discussions / Re: Android and iOS ports available for testing
« on: June 05, 2015, 08:12:22 am »
Well, local reference will be broken as only you detach from the thread, but it is required to be deleted before detach anyway.
Weak global is good to transfer object through several functions where Java thread attached/dettached several times. I did stress-test for it, and most weak references were active whole app runtime, but one of them was broken after 1000-1500 cycles. So, it is bad to hold them whole app lifecycle, nobody knows when it will become broken.
And global reference is reliable and good to hold never changing objects. So, it is better to use in previously posted VirtualKeyboard class, for example.
I hadn't notice change of JavaVM pointer in "ANativeActivity_onCreate", I don't know how constant this value is. Sure, it is good idea to reinit all Java RAII objects in the case if activity->vm will be changed.
About code - looks like you go in the right way. =)

30
General / Re: What about memory leaks?
« on: June 03, 2015, 10:17:47 pm »
Comment _crtBreakAlloc or you will get break point on this allocation.
For example you have this leak:
{195} normal block at 0x042EB0D8, 64 bytes long.
By setting _crtBreakAlloc to 195 program will stop in the line of allocation. Very useful thing, but not always can help (50/50).

Pages: 1 [2] 3 4 ... 22