Skip to content

Instantly share code, notes, and snippets.

@opatut
opatut / menu.py
Created April 27, 2011 17:29
lglive setup menu
#!/bin/bash
TARGET=""
COPIED=0
function help_screen {
dialog --stdout --title "Help" --msgbox "This wizard leads you through the process of installing lglive on your machine. Simply follow the steps in the main menu in the order as listed." 8 50
main_menu
}
@opatut
opatut / mygui_skin_generator.py
Created April 24, 2011 20:42
MyGUI Skin Layout Generator
#!/usr/bin/python
'''
Description:
This script generates the different BasisSkin tags for a MyGUI skin
definintion file. Possible widget layouts are:
- Stretch
- 3 Tiles, vertical
- 3 Tiles, horizontal
- 9 Tiles (center piece and 8 around it)
@opatut
opatut / antialiasing_test.cpp
Created March 26, 2011 11:35
SFML Antialiasing test
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <iostream>
int main() {
sf::RenderWindow app(sf::VideoMode(800,600,32), "lol", sf::Style::Close, sf::ContextSettings(24,8,4));
std::cout << "Antialiasing level: " << app.GetSettings().AntialiasingLevel << std::endl;
while(app.IsOpened()) {