Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Josh

Staff
  • Content Count

    18,431
  • Joined

  • Last visited

Community Reputation

10,214 Excellent

Profile Information

  • Gender
    Male
  • Location
    San Francisco, CA

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Just make declare the function like this in the header and it will work: static void test2(const int start, const int size); If it is a method for a specific object then you will need to use a lambda function, which would be something like this: auto o = make_shared<testclass>(); int start = range / thread_count * n; int size = range / thread_count; threads[n] = CreateThread([o, start, size]() {o->test2(start, size); }, true);
  2. Is port_scanner::test2 a static function? You might need to add & in front of test2, i.e. &test2 or maybe &port_scanner::test2. Maybe try to create a simple example and post the code so we can test it.
  3. SVG files are XML vector files, so they can easily be stored in source code. The default SVG icons the interface uses are stored and loaded like this: auto buffer = CreateBuffer(); auto stream = CreateBufferStream(buffer); String s = "<?xml version=\"1.0\" encoding=\"utf-8\"?> <!-- Generator: Adobe Illustrator 16.0.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\"> <svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www
  4. I am very curious to see what your ideas for environment geometry look like.
  5. A multi line text editor widget is not supported but someone uploaded an add on here that might be useful to you:
  6. Josh

    STL ?

    Templates will work, no problem.
  7. Josh

    STL ?

    Yes, it is included and I rely heavily on various STL features like std::map, std::vector, std::array, and even std::set.
  8. It's not only the framerate, but the time the GPU takes to return data to the CPU. The CPU does not wait for the GPU to complete the task, but how long it takes for that data to become available is independent from framerate and I would guess is highly variable across hardware.
  9. Yes. The magnitude of the first three components in the first three matrix rows are the entity global scale: vec3 scale; scale.x = len(mat[0].xyz); scale.y = len(mat[1].xyz); scale.z = len(mat[2].xyz);
  10. I don't see anything wrong with the Leadwerks path, but I do see that on your machine the installation directory for UAK is called "UltraAppKit" and on my machine it is "Ultra App Kit". I recommend uninstalling UAK, restarting Steam, and then installing UAK again.
  11. You start with a Leadwerks project, not with an Ultra App Kit project. The pre-made project here is updated: This expects you to have Steam installed at "C:\Program Files (x86)\Steam" and Ultra App Kit and Leadwerks installed in the default locations. If Leadwerks or Steam is installed in another location you can edit the file "Projects\Windows\PropertySheet.props" to indicate the new paths.
  12. I think you are paying way too much attention to a detail that does not matter. I see this effect happening in AAA games, and like I said, it's due to your old graphics card and the average user isn't going to have the same problem.
  13. Have you got this?:
  14. Here is a basic example: https://www.ultraengine.com/learn/CPP/OpenGL
×
×
  • Create New...