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 - wdmitry

Pages: [1]
1
General / Re: Android support
« on: May 09, 2024, 01:16:18 pm »
what about the vibration activation?

2
Feature requests / Re: export vertexes from the Shape class
« on: May 06, 2024, 01:14:33 pm »
hm yess. I also just realized that the triangles are in stripes mode, but I need a separate triangles.

another related question is. if I build my own shape using vertex array. then I see this issue.
whenever I set the position (which is 60 frames per second) I need to update all the array of vertexes to move them to a new position.

which could be avoided if I assign pointers. so that each vertex know it's position `*shapePos + shift`
is there a better way to move all the vertex positions rather than for loop?

3
Feature requests / Re: export vertexes from the Shape class
« on: March 25, 2024, 01:29:27 pm »
yes so far I think its an overkill. 1000 draw calls work just fine.
also calculating vertex again from shapes is cpu consuming.

4
Feature requests / export vertexes from the Shape class
« on: March 23, 2024, 01:28:47 pm »
The Shape class has this members. I assume it contains all the information required to draw basic sfml shapes.
But when you have too many shapes to draw, each shape require an individual draw call

Instead it would be possible to export memory to this vertexes of the shapes from the Shape class.
So that the user can build a huge array of vertexes from this shapes and just batch draw it in a single call.

VertexArray    m_vertices{PrimitiveType::TriangleFan};          //!< Vertex array containing the fill geometry
VertexArray    m_outlineVertices{PrimitiveType::TriangleStrip}; //!< Vertex array containing the outline geometry
 

5
General / Re: Android support
« on: November 22, 2023, 09:44:25 pm »
JNI undefined code indeed does crash.

Question: can sfml trigger input text on android system then?

6
General / Drawing out of screen
« on: November 22, 2023, 07:33:18 am »
Should I detect that the graphics is out of main view and therefor disable the draw code or it is done automatically?

7
System / Re: sf::Vector2f is unsigned?
« on: November 21, 2023, 12:07:41 pm »
ah sorry must be typecast error

8
System / sf::Vector2f is unsigned?
« on: November 21, 2023, 12:03:39 pm »
sf::Vector2f(100, -100);

will result into

{ 100, 2.14748e+09 }

9
General / Re: Android support
« on: November 20, 2023, 10:05:15 pm »
was able to configure and compile my project for android, all works!
SFML3 rulz!

10
General / Re: Android support
« on: November 20, 2023, 03:13:03 pm »
I see it did install into a different ndk folder. I just copied it from there to the path it wants and now it works!
Yay!

11
General / Re: Android support
« on: November 20, 2023, 02:55:49 pm »
Hm, this one I didn't follow. let me try. I tried to setup with android studio.

I did run this command additionally to install sfml to ndk
```
cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_ANDROID_NDK=/android-ndk-r25c -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DCMAKE_ANDROID_STL_TYPE=c++_static -DCMAKE_BUILD_TYPE=Debug ../..
```

Here what I get at the last command:
```
> Task :app:configureCMakeDebug[arm64-v8a] FAILED
C/C++: CMake Error at CMakeLists.txt:10 (find_package):
C/C++:   By not providing "FindSFML.cmake" in CMAKE_MODULE_PATH this project has
C/C++:   asked CMake to find a package configuration file provided by "SFML", but
C/C++:   CMake did not find one.
C/C++:   Could not find a package configuration file provided by "SFML" (requested
C/C++:   version 3) with any of the following names:
C/C++:     SFMLConfig.cmake
C/C++:     sfml-config.cmake
C/C++:   Add the installation prefix of "SFML" to CMAKE_PREFIX_PATH or set
C/C++:   "SFML_DIR" to a directory containing one of the above files.  If "SFML"
C/C++:   provides a separate development package or SDK, be sure it has been
C/C++:   installed.

```

12
General / Re: Android support
« on: November 20, 2023, 12:12:15 pm »
I am trying to compile hello world for android. Are there any updated tutorials?

13
General / Android support
« on: November 19, 2023, 10:01:26 pm »
I find some very old articles of people tried to build this thing up for android.
Is there any Android support at all? Tutorials?


Pages: [1]
anything