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
#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)); |
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
//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) { |
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
#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" |
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
#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" |
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
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); | |
} |
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
<?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" |
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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
refreshNavigationBar(); | |
} | |
protected void refreshNavigationBar() { | |
List<NavigationItem> items = new ArrayList<NavigationItem>(); | |
try { | |
for (final Course course : courseManager.getActiveCourses()) { |
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 android.content.Context; | |
import android.content.res.Resources; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.LightingColorFilter; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.graphics.drawable.Drawable; |
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 android.graphics.Bitmap; | |
import android.widget.ImageView; | |
import com.bumptech.glide.request.animation.GlideAnimation; | |
import com.bumptech.glide.request.target.SimpleTarget; | |
import com.bumptech.glide.request.target.Target; | |
import java.io.FileOutputStream; | |
import java.io.IOException; |
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
*.iml | |
.gradle | |
/local.properties | |
/.idea/workspace.xml | |
/.idea/libraries | |
.DS_Store | |
/build | |
/captures | |
OlderNewer