既存の D3D アプリケーションのレンダリング結果に、 自前のポスト処理/オーバーレイを付加したり、スクリーンショット撮ったりする (FXAA とかああいう) のはどーやってるの?
逆順に説明すると、以下のようになる:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import math | |
import array | |
import random | |
import itertools | |
import collections |
class Application(tornado.web.Application): | |
def __init__(self): | |
tornado.web.Application.__init__(self, handlers, **settings) | |
self.db_session = db_session | |
self.redis = redis.StrictRedis() | |
self.session_store = RedisSessionStore(self.redis) | |
class BaseHandler(tornado.web.RequestHandler): |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger (doppelheathen@gmail.com) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
# localized.rb | |
# | |
# Usage: | |
# | |
# include Localized | |
# attr_translated :title | |
# | |
# Model.title now returns title_<locale> or falls back to title_en | |
# |
class AuthTwitterLoginHandler(LoginHandler, tornado.auth.TwitterMixin): | |
@tornado.web.asynchronous | |
@gen.engine | |
def get(self): | |
my_url = (self.request.protocol + "://" + self.request.host + | |
"/auth/twitter?next=" + | |
tornado.escape.url_escape(self.get_argument("next", "/"))) | |
if self.get_argument("oauth_token", None): | |
user = yield gen.Task(self.get_authenticated_user) |