bge.texture.Texture(gameObj) - refresh() API documentation is outdatted/incomplete. #44284

Closed
opened 2015-04-06 17:56:16 +02:00 by Mario Mey · 11 comments

In http:*www.blender.org/api/blender_python_api_2_73_release/bge.texture.html, refresh() from Texture module says:*refresh(texture)
- Refresh texture from source//

But, in basic_video_sound.blend, from Chapter 7, of Dalai's book "Game Development with Blender", it uses:

  refresh(True, G.sound.time)

The second argument seems the position of the video. This is an important feature to, for example, control the video without using play().
If I do:

  print(video.refresh.__doc__)

only says: "Refresh texture from source". I don't know reading CPP, so... I can't get the information from that.

In http:*www.blender.org/api/blender_python_api_2_73_release/bge.texture.html, refresh() from Texture module says:*refresh(texture) - Refresh texture from source// But, in basic_video_sound.blend, from Chapter 7, of Dalai's book "Game Development with Blender", it uses: ``` refresh(True, G.sound.time) ``` The second argument seems the position of the video. This is an important feature to, for example, control the video without using play(). If I do: ``` print(video.refresh.__doc__) ``` only says: "Refresh texture from source". I don't know reading CPP, so... I can't get the information from that.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @MarioSottile

Added subscriber: @MarioSottile

This issue was referenced by blender/blender@108b2f8207

This issue was referenced by blender/blender@108b2f820727219d1d8e5faf1613b4f7dd0911bb

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by blender/blender@6ed1a1abe2

This issue was referenced by blender/blender@6ed1a1abe23fcff887ab0da070ee44d9e16b385e
Author

Added subscriber: @panzergame

Added subscriber: @panzergame
Author

@panzergame, you really wrote a lot of stuff... Thank you!

@panzergame, you really wrote a lot of stuff... Thank you!

Added subscriber: @QuentinWenger

Added subscriber: @QuentinWenger

@MarioSottile: sorry, it's not me the author of the fixed patch i'm only the reviewer and commiter. you should thank @matpi.

@MarioSottile: sorry, it's not me the author of the fixed patch i'm only the reviewer and commiter. you should thank @matpi.
Author

I thank @QuentinWenger, then!

I thank @QuentinWenger, then!

@MarioSottile: you're welcome!

This module should actually get some more improvements (hopefully) soon. :-)

@MarioSottile: you're welcome! This module should actually get some more improvements (hopefully) soon. :-)
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#44284
No description provided.