Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about pysdl2

Read more about pysdl2

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - pysdl2

SDL_BlitSurface in PySDL2 causing segfault on larger surfaces

Background I am creating a window with pysdl2 and using SDL_Blit_Surface for embedding a skia-python surface inside this window with the following code: import skia import sdl2 as sdl from ctypes impo...
test-img

Sujal Singh

python

segmentation-fault

sdl-2

skia

pysdl2

Votes: 0

Answers: 1

Latest Answer

As SDL_CreateRGBSurfaceFrom documentation says, it doesn't allocate memory for pixels data but takes external memory buffer passed to it. While there's a benefit in having no copy operation at all, it...
test-img

keltar

How to embed skia python surface inside pysdl2

I am trying to embed skia-python's surface inside a window rather than output to a image file. I am using pysdl2 to create the window using the following code from the documentation: import sys import...
test-img

Sujal Singh

python

python-3.x

python-3.9

skia

pysdl2

Votes: 0

Answers: 1

Latest Answer

I gave up on creating it without ctypes as all we need from it is ctypes.byref and I am now importing sdl2 instead of sdl2.ext which was more pythonic, but also restricted a bit of functionality that ...
test-img

Sujal Singh

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved