This file contains hidden or 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
| void cube(double x,double y,double z, | |
| double dx,double dy,double dz, | |
| double th); | |
| void cone(double x,double y,double z, | |
| double r,double h,int deg); |
This file contains hidden or 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 "screencasts.h" | |
| void initializeGlobals() | |
| { | |
| windowName = "OpenGL screenscasts 11: Code Organization"; | |
| windowWidth = 500; | |
| windowHeight = 450; | |
| toggleAxes = 0; | |
| toggleValues = 1; |
This file contains hidden or 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 "screencasts.h" | |
| /* | |
| * main() | |
| * ---- | |
| * Start up GLUT and tell it what to do | |
| */ | |
| int main(int argc,char* argv[]) | |
| { | |
| initializeGlobals(); |
This file contains hidden or 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 "screencasts.h" | |
| /* Poor man's approximation of PI */ | |
| #define PI 3.1415926535898 | |
| /* Macro for sin & cos in degrees */ | |
| #define Cos(th) cos(PI/180*(th)) | |
| #define Sin(th) sin(PI/180*(th)) | |
| /* D degrees of rotation */ | |
| #define DEF_D 5 |
This file contains hidden or 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 "screencasts.h" | |
| /* Poor man's approximation of PI */ | |
| #define PI 3.1415926535898 | |
| /* Macro for sin & cos in degrees */ | |
| #define Cos(th) cos(PI/180*(th)) | |
| #define Sin(th) sin(PI/180*(th)) | |
| /* Globals */ | |
| double dim=3.0; /* dimension of orthogonal box */ |
This file contains hidden or 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 "screencasts.h" | |
| /* Poor man's approximation of PI */ | |
| #define PI 3.1415926535898 | |
| /* Macro for sin & cos in degrees */ | |
| #define Cos(th) cos(PI/180*(th)) | |
| #define Sin(th) sin(PI/180*(th)) | |
| /* D degrees of rotation */ | |
| #define DEF_D 5 |
This file contains hidden or 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
| <RelativeLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:orientation="vertical" | |
| android:layout_height="fill_parent" | |
| android:layout_width="fill_parent"> | |
| <ScrollView | |
| android:id="@+id/scrollview" | |
| android:layout_height="fill_parent" | |
| android:layout_width="fill_parent" | |
| android:layout_above="@+id/m_table_menu"> |
This file contains hidden or 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 "screencasts.h" | |
| /* Poor man's approximation of PI */ | |
| #define PI 3.1415926535898 | |
| /* Macro for sin & cos in degrees */ | |
| #define Cos(th) cos(PI/180*(th)) | |
| #define Sin(th) sin(PI/180*(th)) | |
| /* Globals */ | |
| double dim=3.0; /* dimension of orthogonal box */ |
This file contains hidden or 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
| <ScrollView | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:orientation="vertical" | |
| android:id="@+id/scrollview" | |
| android:layout_height="wrap_content" | |
| android:layout_width="fill_parent" | |
| android:isScrollContainer="true"> | |
| <TableLayout | |
| android:layout_height="match_parent" | |
| android:layout_width="fill_parent" |
This file contains hidden or 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 "screencasts.h" | |
| /* Globals */ | |
| double dim=3.0; /* dimension of orthogonal box */ | |
| char *windowName = "OpenGL screenscasts 6: Drawing in 3d part 1: GLUT objects"; | |
| int windowWidth=500; | |
| int windowHeight=450; | |
| /* Various global state */ | |
| /* Toggles */ |