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

Author Topic: Image saving  (Read 2184 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9173
    • View Profile
    • development blog
    • Email
Re: Image saving
« Reply #15 on: January 14, 2019, 12:18:52 pm »
You could start now, because SFML 3 comes after SFML 2.6 and we don't really need to wait to get the first things started for SFML 3 IMHO. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32037
    • View Profile
    • SFML's website
    • Email
Re: Image saving
« Reply #16 on: January 14, 2019, 01:04:27 pm »
Quote
SFML 3 comes after SFML 2.6
Really? Who's working on it? :P

Quote
we don't really need to wait to get the first things started for SFML 3
? Nothing is ready for working properly on SFML 3.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32037
    • View Profile
    • SFML's website
    • Email
Re: Image saving
« Reply #17 on: January 15, 2019, 01:37:17 pm »
See https://github.com/SFML/SFML/issues/988. It links to a corresponding PR, and a discussion about sf::OutputStream.
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6152
  • Thor Developer
    • View Profile
    • Bromeon
Re: Image saving
« Reply #18 on: February 11, 2019, 08:26:40 am »
An advantage of adding sf::OutputStream before SFML 3 would be that we might get feedback to improve. If the API is not ideal initially, we're not stuck with it forever.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: first SFML book

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9173
    • View Profile
    • development blog
    • Email
Re: Image saving
« Reply #19 on: February 11, 2019, 03:40:47 pm »
If you want to get anything in before SFML 3, then start working on it, as SFML 2.6 will be the last SFML 2.x release.

I feel like some of you may have missed the planned road map: https://en.sfml-dev.org/forums/index.php?topic=24372.0 :D
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

gex

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Image saving
« Reply #20 on: February 11, 2019, 07:06:30 pm »
An advantage of adding sf::OutputStream before SFML 3 would be that we might get feedback to improve. If the API is not ideal initially, we're not stuck with it forever.

I would really love to see that in 2.x (if 2.6 shall be last 2.x release, then in 2.6 ;-) ). At the moment I need to write a tmp file and the read it again for further usage. Obviously that is not ideal.

I don't feel experienced enough in C++ development and SFML in specific to get enganged in neither the discussion regarding implementation and nor in contributing code. However I'd be more than happy to give feedback!

gex

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Image saving
« Reply #21 on: February 15, 2019, 02:56:44 pm »
Today I solved my issue by using stb_image_write.h in my code in order to save images into memory without use of temporary files. Therefore my urgent need is gone, although I sill think it would be a great addition to SFML if it was possible directly using SFML API.

Again, many thanks for your great work.

FRex

  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • My GitHub page
    • Email
Re: Image saving
« Reply #22 on: February 15, 2019, 03:28:12 pm »
And you're linking dynamically, right? Because there is a small issue with using your own STB image and image write along statically linked SFML: https://en.sfml-dev.org/forums/index.php?topic=25011.msg166598
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

gex

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Image saving
« Reply #23 on: February 15, 2019, 04:18:08 pm »
And you're linking dynamically, right? Because there is a small issue with using your own STB image and image write along statically linked SFML: https://en.sfml-dev.org/forums/index.php?topic=25011.msg166598

Thank you for the hint. Yes, currently I am linking SFML dynamically and will probably stick to it.

 

anything