mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc_samples/; revision=9858
This commit is contained in:
parent
29c801d69b
commit
c02ae8269c
|
@ -23,4 +23,7 @@ David 12 Apr 2006
|
||||||
- split out graphics code into separate file
|
- split out graphics code into separate file
|
||||||
|
|
||||||
uppercase/
|
uppercase/
|
||||||
uc_graphics.C
|
uc_graphics.C (new)
|
||||||
|
upper_case.C
|
||||||
|
win_build/
|
||||||
|
upper_case.vcproj
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
float white[4] = {1., 1., 1., 1.};
|
float white[4] = {1., 1., 1., 1.};
|
||||||
TEXTURE_DESC logo;
|
TEXTURE_DESC logo;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
APP_INIT_DATA uc_aid;
|
||||||
|
|
||||||
static void initlights() {
|
static void initlights() {
|
||||||
GLfloat ambient[] = {1., 1., 1., 1.0};
|
GLfloat ambient[] = {1., 1., 1., 1.0};
|
||||||
|
@ -36,6 +37,7 @@ static void initlights() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void app_graphics_init() {
|
void app_graphics_init() {
|
||||||
|
boinc_get_init_data(uc_aid);
|
||||||
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||||
txf_load_fonts(".");
|
txf_load_fonts(".");
|
||||||
logo.load_image_file("logo.jpg");
|
logo.load_image_file("logo.jpg");
|
||||||
|
|
|
@ -43,6 +43,10 @@
|
||||||
|
|
||||||
#define BOINC_APP_GRAPHICS
|
#define BOINC_APP_GRAPHICS
|
||||||
|
|
||||||
|
#ifdef BOINC_APP_GRAPHICS
|
||||||
|
#include "graphics_api.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "diagnostics.h"
|
#include "diagnostics.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "filesys.h"
|
#include "filesys.h"
|
||||||
|
@ -59,7 +63,6 @@ bool run_slow;
|
||||||
bool raise_signal;
|
bool raise_signal;
|
||||||
bool random_exit;
|
bool random_exit;
|
||||||
double cpu_time=20;
|
double cpu_time=20;
|
||||||
APP_INIT_DATA uc_aid;
|
|
||||||
|
|
||||||
int do_checkpoint(MFILE& mf, int nchars) {
|
int do_checkpoint(MFILE& mf, int nchars) {
|
||||||
int retval;
|
int retval;
|
||||||
|
@ -113,8 +116,6 @@ void worker() {
|
||||||
MFILE out;
|
MFILE out;
|
||||||
FILE* state, *in;
|
FILE* state, *in;
|
||||||
|
|
||||||
boinc_get_init_data(uc_aid);
|
|
||||||
|
|
||||||
boinc_resolve_filename(INPUT_FILENAME, resolved_name, sizeof(resolved_name));
|
boinc_resolve_filename(INPUT_FILENAME, resolved_name, sizeof(resolved_name));
|
||||||
in = boinc_fopen(resolved_name, "r");
|
in = boinc_fopen(resolved_name, "r");
|
||||||
if (in == NULL) {
|
if (in == NULL) {
|
||||||
|
|
|
@ -155,6 +155,9 @@
|
||||||
<Filter
|
<Filter
|
||||||
Name="Source Files"
|
Name="Source Files"
|
||||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
|
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
|
||||||
|
<File
|
||||||
|
RelativePath="..\uppercase\uc_graphics.C">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\uppercase\upper_case.C">
|
RelativePath="..\uppercase\upper_case.C">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
|
|
Loading…
Reference in New Issue