New answers tagged

1

You need to handle events regularly. Usually that is calling pygame.event.get(). For example: while not done: for event in pygame.event.get(): if event.type == pygame.QUIT: done = True If you are doing nothing with the events, you can call pygame.event.pump() instead.


1

At it's most fundamental, you need to load an image into a texture and then apply that texture to a material. You can do that as follows: public void SetImage(string filePath) { // Create a variable to hold the texture Texture2D tex = null; byte[] fileData; // Check file exists if (File.Exists(filePath)) { // Read ...


Top 50 recent answers are included