1. Joseph Bane
  2. FFS Pixmap visualization client

Commits

Sherief N. Farouk  committed 9d7c263

Added client function stubs.

  • Participants
  • Parent commits 0c5446d
  • Branches default

Comments (0)

Files changed (1)

File pixmap_viz_client.cpp

View file
  • Ignore whitespace
 
 void reshape(int Width, int Height);
 
+struct client_info
+{
+    int width;
+    int height;
+};
+
+void client_initialize();
+client_info handshake(const char* const IP);
+//writes received data to next image into, Data can hold width*height*4 elements (RGBA)
+//returns 1 on success, 0 on failure (failure, say, server closed.)
+int next_image(unsigned char* Data);
+void close_connection();
+void client_deinitialize();
+
 int main(int argc, char* argv[])
 {
     cout << "Use the right mouse button to bring up the options menu.\n";
 
 //This function is from http://www.lighthouse3d.com/opengl/glut/index.php?bmpfont
 //(slightly modified for style)
-
 void render_bitmap_string(
                           float x, 
                           float y, 
     assert(glGetError() == GL_NO_ERROR);
     glutSwapBuffers();
 }
+
+void client_initialize() {}
+client_info handshake(const char* const IP)
+{
+    client_info Info;
+    Info.width = 16;
+    Info.height = 16;
+    return Info;
+}
+//writes received data to next image into, Data can hold width*height*4 elements (RGBA)
+//returns 1 on success, 0 on failure (failure, say, server closed.)
+int next_image(unsigned char* Data)
+{
+    return 1;
+}
+void close_connection() {}
+void client_deinitialize() {}