This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __TEXTURE_HOLDER_H__ | |
#define __TEXTURE_HOLDER_H__ | |
#include <cassert> | |
#include <map> | |
#include <memory> | |
#include <stdexcept> | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
class MyServer( object ): | |
"""docstring for MyServer""" | |
def __init__( self ): | |
super( MyServer, self ).__init__() | |
self.HOST = "" | |
self.PORT = 50007 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.*; | |
import java.awt.*; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.awt.geom.*; | |
import java.awt.image.BufferedImage; | |
public class DemoViewer { | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg -i panda3d1.10_1.10.0_amd64.deb | |
Selecting previously unselected package panda3d1.10. | |
(Reading database ... 202410 files and directories currently installed.) | |
Preparing to unpack panda3d1.10_1.10.0_amd64.deb ... | |
Unpacking panda3d1.10 (1.10.0) ... | |
dpkg: dependency problems prevent configuration of panda3d1.10: | |
panda3d1.10 depends on python-pmw; however: | |
Package python-pmw is not installed. | |
dpkg: error processing package panda3d1.10 (--install): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ apt search python-pmw | |
Sorting... Done | |
Full Text Search... Done | |
python-pmw/stable 1.3.2-6 all | |
Pmw -- Python MegaWidgets | |
python-pmw-doc/stable 1.3.2-6 all | |
Pmw -- Python MegaWidgets | |
montreal@magnetar:~/Programming/sources/panda$ sudo apt-get install python-pmw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
montreal@magnetar:~/Programming/sources/panda$ sudo apt-get update | |
[sudo] password for montreal: | |
Ign http://packages.linuxmint.com debian InRelease | |
Hit http://ftp.us.debian.org jessie InRelease | |
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB] | |
Get:2 http://packages.linuxmint.com debian Release.gpg [198 B] | |
Get:3 http://ftp.us.debian.org jessie-updates InRelease [123 kB] | |
Get:4 http://packages.linuxmint.com debian Release [16.7 kB] | |
Get:5 http://security.debian.org jessie/updates/main Sources [80.4 kB] | |
Get:6 http://packages.linuxmint.com debian/import amd64 Packages [55.7 kB] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
montreal@magnetar:~/Programming/sources/panda$ sudo apt-get install -f | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Correcting dependencies... Done | |
The following extra packages will be installed: | |
blt python-pmw python-tk tk8.6-blt2.5 | |
Suggested packages: | |
blt-demo python-pmw-doc tix python-tk-dbg | |
The following NEW packages will be installed: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Version: 1.10.0 | |
Using Python 2.7 | |
Target arch: x86_64 | |
WARNING: Could not locate thirdparty package artoolkit, excluding from build | |
WARNING: Could not locate thirdparty package fcollada, excluding from build | |
WARNING: Could not locate thirdparty package assimp, excluding from build | |
WARNING: Could not locate thirdparty package ffmpeg, excluding from build | |
WARNING: Could not locate thirdparty package swscale, excluding from build | |
WARNING: Could not locate thirdparty package swresample, excluding from build | |
WARNING: Could not locate thirdparty package fftw, excluding from build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Output | |
False | |
'gui' | |
'__pycache__' | |
'data' | |
'client_socket.pyc' | |
'FreeMono.ttf' | |
'panda_game_client.py' | |
'client_socket.py' | |
'client_game.py' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:pnmtext(error): Unable to find font file /home/montreal/Programming/projects/altruistic_alligator/client/FreeMono.ttf | |
Traceback (most recent call last): | |
File "panda_game_client.py", line 37, in <module> | |
game = XGameClient() | |
File "panda_game_client.py", line 23, in __init__ | |
font = self.loader.loadFont( "/home/montreal/Programming/projects/altruistic_alligator/client/FreeMono.ttf" ) | |
File "/usr/share/panda3d/direct/showbase/Loader.py", line 506, in loadFont | |
raise IOError, message | |
IOError: Could not load font file: /home/montreal/Programming/projects/altruistic_alligator/client/FreeMono.ttf |
OlderNewer