Skip to content

Instantly share code, notes, and snippets.

View eaglesakura's full-sized avatar
🏠
Working from home

eaglesakura eaglesakura

🏠
Working from home
View GitHub Profile
class CacheObservable<T> : OperatorObservableBase<IList<T>>
{
readonly UniRx.IObservable<T> source;
readonly int count;
public CacheObservable(UniRx.IObservable<T> source, int count)
: base(source.IsRequiredSubscribeOnCurrentThread())
{
this.source = source;
this.count = count;
public class SimpleGL20Activity extends Activity implements Renderer {
static final String TAG = SimpleGL20Activity.class.getSimpleName();
GLTextureView glTextureView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
glTextureView = new GLTextureView(this);