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

Author Topic: Roadmap: copying  (Read 16204 times)

0 Members and 1 Guest are viewing this topic.

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Roadmap: copying
« on: May 23, 2008, 09:32:08 pm »
Quote from: "Roadmap"

GRAPHICS   Add a function to copy an image onto another


Somthing like sf::Image::Draw(const Drawable&) ?
We ll have great features, thank you Laurent!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Roadmap: copying
« Reply #1 on: May 24, 2008, 05:38:43 am »
No, that's more something like
Code: [Select]
sf::Image::Copy(const sf::Image& Source, const sf::IntRect Area, ...)
This one is not very hard to implement, you can already do it by copying pixels in a loop. The main reason for adding it to SFML is to make it faster using internal data rather that GetPixel / SetPixel.

What you're talking about is render-to-image, which is also in the roadmap. This feature is more complex and will take longer to implement.
Laurent Gomila - SFML developer

Kernelpanic

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://eisenholz.bplaced.net
Roadmap: copying
« Reply #2 on: May 24, 2008, 03:18:43 pm »
Nice.

tgm

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Roadmap: copying
« Reply #3 on: June 05, 2008, 02:06:27 pm »
jap rendering to image is a must have.. (btw. would love to see shaders, too)
having RTT + Shaders makes a whole bunch og nice effects possible^^

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Roadmap: copying
« Reply #4 on: June 05, 2008, 02:28:26 pm »
Shaders will also be part of version 1.4 (you'll still be able to apply a PostFx to a window as a post-fx, but you'll also be able to apply a PostFx to any drawable, more like a regular pixel shader).
Laurent Gomila - SFML developer

tgm

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Roadmap: copying
« Reply #5 on: June 05, 2008, 04:57:48 pm »
great news... any chance on vertexshaders?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Roadmap: copying
« Reply #6 on: June 05, 2008, 07:00:44 pm »
A vertex shader for 2D quads ? :|
Laurent Gomila - SFML developer

quasius

  • Full Member
  • ***
  • Posts: 166
    • View Profile
Roadmap: copying
« Reply #7 on: June 06, 2008, 07:48:07 pm »
Quote from: "Laurent"
A vertex shader for 2D quads ? :|


I could see some uses.  Maybe for animating via texture coords.  I'm sure it wouldn't be useless, but obviously pixel shaders would be a much bigger deal.
Actually, messing with texture coords is the only thing I can think of off the top of my head.

workmad3

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Roadmap: copying
« Reply #8 on: June 09, 2008, 05:58:18 pm »
The more useful part of vertex shaders in SFML would be to have them available for us peeps that use full OGL. It would be pretty useful to have a nicer interface for loading shaders for use in OGL, and it would be interesting to see what people come up with as uses for 2d vertex shaders as well :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Roadmap: copying
« Reply #9 on: June 10, 2008, 03:56:41 pm »
SFML is meant to be used whether for raw OpenGL rendering or full 2D abstraction ; providing wrapper classes for OpenGL complex features is something which is between both, and I don't think SFML will provide this kind of features in the future.
Laurent Gomila - SFML developer