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
|
||||
|
||||
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.};
|
||||
TEXTURE_DESC logo;
|
||||
int width, height;
|
||||
APP_INIT_DATA uc_aid;
|
||||
|
||||
static void initlights() {
|
||||
GLfloat ambient[] = {1., 1., 1., 1.0};
|
||||
|
@ -36,6 +37,7 @@ static void initlights() {
|
|||
}
|
||||
|
||||
void app_graphics_init() {
|
||||
boinc_get_init_data(uc_aid);
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
txf_load_fonts(".");
|
||||
logo.load_image_file("logo.jpg");
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
|
||||
#define BOINC_APP_GRAPHICS
|
||||
|
||||
#ifdef BOINC_APP_GRAPHICS
|
||||
#include "graphics_api.h"
|
||||
#endif
|
||||
|
||||
#include "diagnostics.h"
|
||||
#include "util.h"
|
||||
#include "filesys.h"
|
||||
|
@ -59,7 +63,6 @@ bool run_slow;
|
|||
bool raise_signal;
|
||||
bool random_exit;
|
||||
double cpu_time=20;
|
||||
APP_INIT_DATA uc_aid;
|
||||
|
||||
int do_checkpoint(MFILE& mf, int nchars) {
|
||||
int retval;
|
||||
|
@ -113,8 +116,6 @@ void worker() {
|
|||
MFILE out;
|
||||
FILE* state, *in;
|
||||
|
||||
boinc_get_init_data(uc_aid);
|
||||
|
||||
boinc_resolve_filename(INPUT_FILENAME, resolved_name, sizeof(resolved_name));
|
||||
in = boinc_fopen(resolved_name, "r");
|
||||
if (in == NULL) {
|
||||
|
|
|
@ -155,6 +155,9 @@
|
|||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
|
||||
<File
|
||||
RelativePath="..\uppercase\uc_graphics.C">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\uppercase\upper_case.C">
|
||||
<FileConfiguration
|
||||
|
|
Loading…
Reference in New Issue