Skip to content

Instantly share code, notes, and snippets.

View agustinsivoplas's full-sized avatar

Agustin Sivoplás agustinsivoplas

  • Montevideo, UY
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
private class MyCustomAdapter extends ArrayAdapter<Country> {
private ArrayList<Country> countryList;
public MyCustomAdapter(Context context, int textViewResourceId,
ArrayList<Country> countryList) {
super(context, textViewResourceId, countryList);
this.countryList = new ArrayList<Country>();
this.countryList.addAll(countryList);
}
#include "framework/canvas.h"
#include "framework/mm.h"
#include "framework/color.h"
#include "Scene/Vec4.h"
#include "Scene/Camera.h"
#include "Scene/Light.h"
#include "Scene/Sphere.h"
#include "Scene/Scene.h"
#include "Scene/Intersection.h"
#include "Scene/Raytracer.h"
#include "../framework/color.h"
#include <math.h>
#include "Vec4.h"
#include "Sphere.h"
#include "Intersection.h"
#include "float.h"
#include "Camera.h"
#include "Light.h"
#include "Scene.h"
#include "Raytracer.h"
//Luego de que termino de crear los objetos hago la asociacion de hijos
char* tokenHijos;
SceneNode* hijos;
SceneNode* nodeHijo = NULL;
int posHijo;
for (int i = 0; i < nObjetos; i++) {
SceneNode* scnNode = &scene->nodes[i];
if (scnNode->num_hijos > 0) {
tokenHijos = strtok(scnNode->hijos_str, ",\n");
if (tokenHijos != NULL) {
@agustinsivoplas
agustinsivoplas / main.c
Created September 5, 2015 17:19
main c box
#include "framework/canvas.h"
#include "framework/mm.h"
#include "vec3.h"
#include "GL/gl.h"
#include <stdio.h>
int main(int argc, char* argv[]) {
// printf("La version de OpenGL es %s", glGetString(GL_VERSION));