pombreda / pgreloaded

Automatically exported from code.google.com/p/pgreloaded
Other
0 stars 0 forks source link

SDL_GetWindowDisplay #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import pygame2.sdl.render
2. Get an error that SDL_GetRenderTarget can not be found.

>>> import pygame2.sdl.render
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".\pygame2\sdl\render.py", line 471, in <module>
    ctypes.POINTER(SDL_Texture))
  File ".\pygame2\dll\__init__.py", line 102, in __init__
    func = self_.dll.get_dll_function(funcname)
  File ".\pygame2\dll\__init__.py", line 81, in get_dll_function
    func = getattr(self._dll, name)
  File "C:\Python33\lib\ctypes\__init__.py", line 366, in __getattr__
    func = self.__getitem__(name)
  File "C:\Python33\lib\ctypes\__init__.py", line 371, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'SDL_GetRenderTarget' not found

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
With which Python implementation?
Feb pull of code run on Windows 7, 32 bit, Python 3.3

Please provide any additional information below.
Running dumpbin on dll shows no such function.

Original issue reported on code.google.com by proteus....@gmail.com on 3 Mar 2013 at 11:16

GoogleCodeExporter commented 9 years ago
This is solved in http://bitbucket.org/marcusva/py-sdl2 - do you need a final 
patch for pgreloaded? If not, I'd like to draw your attention to the project 
above.

Original comment by marcusvonappen@googlemail.com on 27 Apr 2013 at 6:38