• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. Weekly US politics news and updates thread - week of September 4

      This thread is posted weekly - please try to post all relevant US political content in here, such as news, updates, opinion articles, etc. Extremely significant events may warrant a separate...

      This thread is posted weekly - please try to post all relevant US political content in here, such as news, updates, opinion articles, etc. Extremely significant events may warrant a separate topic, but almost all should be posted in here.

      This is an inherently political thread; please try to avoid antagonistic arguments and bickering matches. Comment threads that devolve into unproductive arguments may be removed so that the overall topic is able to continue.

      10 votes
    2. Help with finding out more about an obsure c++ graphics library

      I recently started classes again a little over a week ago. One of the classes I am taking is Computer science 2. One of the things it includes is openGL based graphics programming. They have us...

      I recently started classes again a little over a week ago. One of the classes I am taking is Computer science 2. One of the things it includes is openGL based graphics programming. They have us using glut, which is not bad in it self. However what they do is provide us a wrapper library for glut. In the form of a header named "graph1.h" and a precompiled library. Which goes by various names, such as "graphLib1.lib", "graphLib2010.lib", "graphLib2022.lib", "graphicLib2015.lib", etc. It's provided in the form of Windows flavored x86, Macos flavored x86_64 and arm. However, no forms for Linux. While I have been using Windows and VS Studio for classes so far, I strongly prefer my current Linux based tool chain. (text editor, build system, debugger). I have tried cross compiling with mingw-w64, but it fails when I try to link it. I would very much like to use it natively. To do this I would need either the library or the sources to compile it myself. That is what I would really like to find.

      Here is more about the library it self. It is based off of BMPLoader, a small library for loading bitmaps as openGL textures. It also inherits its license from BMPLoader too, because it is a derivative of BMPLoader. (GPLv2; and has been distributed). When you unpack the library there are 3 object files, BMPLoader.o, loadPNG.o, and example2.o. (.o/.obj) I have found traces of it online, however they all link back to my University, University of Central Arkansas. I have also found evidence of it being used at GSU too, but it is from one of the professors that is now here at UCA. (They even provided a pdf on using it, I hashed them and they were the same). Here is a copy of the header graph1.h.

      graph1.h
      /*BMPLoader - loads Microsoft .bmp format
          Copyright (C) 2006  Chris Backhouse
      
          This program is free software; you can redistribute it and/or modify
          it under the terms of the GNU General Public License as published by
          the Free Software Foundation; either version 2 of the License, or
          (at your option) any later version.
      
          This program is distributed in the hope that it will be useful,
          but WITHOUT ANY WARRANTY; without even the implied warranty of
          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
          GNU General Public License for more details.
      
          You should have received a copy of the GNU General Public License along
          with this program; if not, write to the Free Software Foundation, Inc.,
          51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      
      
        cjbackhouse@hotmail.com 		www.backhouse.tk
        
        I would appreciate it if anyone using this in something cool would tell me
        so I can see where it ends up.
      
        Takes a filename, returns an array of RGB pixel data
        Loads:
        24bit bitmaps
        256 colour bitmaps
        16 colour bitmaps
        2 colour bitmaps  (Thanks to Charles Rabier)
      
        This code is designed for use in openGL programs, so bitmaps not correctly padded will not
        load properly, I believe this only applies to: 
        256cols if width is not a multiple of 4
        16cols if width is not a multiple of 8
        2cols if width is not a multiple of 32
      
        Sample code:
      
      	BMPClass bmp;
      	BMPLoad(fname,bmp);
      	glTexImage2D(GL_TEXTURE_2D,0,3,bmp.width,bmp.height,0,GL_RGB,GL_UNSIGNED_BYTE,bmp.bytes);
      */
      #include <windows.h>
      #include <gl/glut.h>
      #include <iostream>
      #include <cstring>
      #include <string>
      #define endg "_endg_"
      
      
      #ifndef BMPLOADER_H
      #define BMPLOADER_H
      
      #include <iostream>
      #include <cstring>
      
      using namespace std;
      
      typedef unsigned char BYTE;
      
      class BMPClass
      {
      public:
      	BMPClass();
      	~BMPClass();
      	BYTE& pixel(int x,int y,int c);
      	void allocateMem();
      	int width,height;
      	BYTE* bytes;			//OpenGL formatted pixels
      };
      
      #define BMPError char
      #define BMPNOTABITMAP 'b'	//Possible error flags
      #define BMPNOOPEN 'o'
      #define BMPFILEERROR 'f'
      #define BMPBADINT 'i'
      #define BMPNOERROR '\0'
      #define BMPUNKNOWNFORMAT 'u'
      
      //Loads the bmp in fname, and puts the data in bmp
      BMPError BMPLoad(string fname,BMPClass& bmp);
      
      //Translates my error codes into English	
      std::string TranslateBMPError(BMPError err);	
      
      //Load and select in OpenGL
      BMPError BMPLoadGL(string fname);
      
      struct Precision
      {
        int precision;
        bool precisionFlag;
      };
      
      struct GraphColor
      {
        int r;
        int g;
        int b;
      };
      
      class Gout
      {
        private:
          int x;
          int y;
          int r;
          int g;
          int b;
          int precision;
          bool precisionFlag;
      
      
        public:
          Gout() { r= 0; g=255; b= 0; precisionFlag = false; };
          void setX(int x) { this->x = x;}
          void setY(int y) { this->y = y;}
          int getX() { return x;}
          int getY() { return y;}
          void setR(int r) {this->r = r;}
          void setG(int g) {this->g = g;}
          void setB(int b) {this->b = b;}
          int getR() {return r;}
          int getG() { return g;}
          int getB() {return b;}
          void setPrecisionFlag(bool flag) { precisionFlag = flag;}
          bool getPrecisionFlag() {return precisionFlag;}
          void setPrecision(int precision) {this->precision = precision;}
          int  getPrecision() {return precision;}
          friend Gout& operator<<(Gout& g, int int_val);
          friend Gout& operator<<(Gout& g, double int_val);
          friend Gout& operator<<(Gout& g, char* char_val);
          friend Gout& operator<<(Gout& g, string string_val);
         
      };
      
      extern Gout gout;
      
      struct Point
      {
        int x;
        int y;
      };
      
      
      
      struct GraphObject
      {
        char* str;
        int id;
        int no_points;
        Point* points;
        double* colors;
        int radius;
        int no_objects;
        BMPClass* bmp;
        int remove;
        int width;
        int height;
        int del;
        BYTE* bytes; //PNG BYTES
      };
      
      void reshape(int w, int h);
      void display(void);
      void init(char* title);
      int drawPoint(int x, int y);
      int drawCircle(int radius, int x, int y);
      void drawMyCircle( int Radius, int numPoints, int x, int y );
      int drawLine(int x1, int y1, int x2, int y2, int width);
      int drawRect(int x1, int y1, int width, int height);
      void displayGraphics();
      int displayBMP(char* fn,int x, int y);
      int displayBMP(string fn, int x, int y);
      int displayPNG(string fn, int x, int y);
      int displayPNG(char* fn, int x, int y);
      int displayText(char* str, int x, int y, int r, int g, int b);
      void clearGraphics();
      void setColor(int obj_no, int r, int g, int b);
      GraphColor setColor(int r, int g, int b);
      void timerColor(int value);
      void moveObject(int obj_no, int x, int y);
      void processSpecialKeys(int key, int x, int y);
      DWORD WINAPI display1(LPVOID lpParam);
      void processMouse(int button, int state, int x, int y);
      void removeObject(int id);
      void clearText();
      void GRAPH_SS();
      bool up();
      bool down();
      bool left();
      bool right();
      bool leftMouse(int&x, int&y);
      bool rightMouse(int&x, int&y);
      bool middleMouse(int&x, int&y);
      Gout& operator<<(Gout& g, int int_val);
      Gout& operator<<(Gout& g, double int_val);
      Gout& operator<<(Gout& g, char* char_val);
      Gout& operator<<(Gout& g, char char_val);
      Gout& operator<<(Gout& g, Gout&(*pt2Func)(int x, int y));
      Gout& operator<<(Gout& g, Gout&(*pt2Func)(int r, int g, int b));
      Gout& operator<<(Gout& g, Point a);
      Gout& operator<<(Gout& g, GraphColor gc);
      Gout& operator<<(Gout& g, Precision p);
      Gout& operator<<(Gout& g, Gout&(*pt2Func)(int precision));
      Precision setPrecision(int precision);
      Point setPos(int x, int y);
      void getPos(int obj_no, Point points[], int& no_points);
      bool mouseDragged(int& x, int& y);
      void processMouseDragged(int x, int y);
      void replaceObject(int orig_obj, int new_obj);
      void closeGraphics();
      
      #endif
      

      Right now I am of the opinion that it is a in-house "hackjob". That is how it feels with the GPLed BMPLoader glued together with other graphics functions. In an attempt to not have to use new literature or new style libraries with the new ".net 2008" style ide, as they were likely transitioning out of a codewarrior environment, and before that a borland environment.

      So far, I have asked our computer science club about it. The main thing I was told was that the professor just wants us to use windows. That I can understand, but I still want to see how far I can go. I have also tried sending an email about it to the professor, but all I got sent was a link to the glut downloads. I did reply back asking about the graphlib sources too, but I haven't heard anything back yet. I don't want to push too hard, I still have a whole semester ahead of me. So now I am asking here on tildes. I understand if nothing can be found, but at least information and experiences can be collected.

      11 votes
    3. What are your favorite soundtracks for films and video games?

      Basically the title. I have seen soundtracks referenced in my searches for ambient music and homework music, but (possibly due to search skills) I didn't find a full discussion focused on this....

      Basically the title. I have seen soundtracks referenced in my searches for ambient music and homework music, but (possibly due to search skills) I didn't find a full discussion focused on this. Thank you.

      35 votes
    4. Starfield - what are your thoughts?

      For those of us who caved and got the Early Access, what are your thoughts on the game so far? Please remember to tag spoilers! And for anyone looking forward to it coming out on Wednesday, got...

      For those of us who caved and got the Early Access, what are your thoughts on the game so far? Please remember to tag spoilers!

      And for anyone looking forward to it coming out on Wednesday, got any plans for a build or character?

      61 votes
    5. Any tips for evening out 'uneven pecs'?

      Hello ~health tilderinos! I have a case of the 'uneven pecs'. To elaborate, my left pecs is much more developed and my right seems to be lagging behind which is mighty frustrating because I've...

      Hello ~health tilderinos!

      I have a case of the 'uneven pecs'.
      To elaborate, my left pecs is much more developed and my right seems to be lagging behind which is mighty frustrating because I've always used dumbbells to eradicate any sort of uneven muscle development :(

      My upper body strength training routine consists of

      • bench presses (incline, flat, decline) with dumbbells
      • bench presses (incline and flat) with cables for inner chest development
      • rows with cable machine
      • cable crossovers (high, low, mid)
      • dumbbell pullover

      FWIW I do have really uneven abs -- the abs on my left side are off by one. They first left ab starts where the second ab of the right side starts if that makes sense?
      So I am sort of acknowledging that this could be genetic and out of my control.

      Any help/insight/advice appreciated!

      11 votes
    6. NASCAR - Darlington Cook Out Southern 500

      Darlington is the first race of the NASCAR playoffs. 367 laps Network NBC Didn't see a thread for discussion of the race so thought I would start one. Who is everyone pulling for? Ive been a...

      Darlington is the first race of the NASCAR playoffs.
      367 laps
      Network NBC

      Didn't see a thread for discussion of the race so thought I would start one. Who is everyone pulling for? Ive been a Blaney fan for awhile, but I'm excited to see what RFK can do.

      4 votes
    7. Formula 1 Grand Prix of Italy (Monza) 2023 - Results

      That was a pretty good race. The Ferrari boys definitely entertained today! On to Singapore in two weeks! Results -- SPOILER POS NO DRIVER CAR LAPS TIME/RETIRED PTS 1 1 Max Verstappen RED BULL...

      That was a pretty good race. The Ferrari boys definitely entertained today!

      On to Singapore in two weeks!

      Results -- SPOILER
      POS NO DRIVER CAR LAPS TIME/RETIRED PTS
      1 1 Max Verstappen RED BULL RACING HONDA RBPT 50 1:12:13.618 25
      2 11 Sergio Perez RED BULL RACING HONDA RBPT 50 +7.686s 18
      3 55 Carlos Sainz FERRARI 50 +11.674s 15
      4 16 Charles Leclerc FERRARI 50 +12.119s 12
      5 63 George Russell MERCEDES 50 +18.925s 10
      6 44 Lewis Hamilton MERCEDES 50 +39.111s 8
      7 23 Alexander Albon WILLIAMS MERCEDES 50 +45.198s 6
      8 4 Lando Norris MCLAREN MERCEDES 50 +45.549s 4
      9 14 Fernando Alonso ASTON MARTIN ARAMCO MERCEDES 50 +46.424s 2
      10 77 Valtteri Bottas ALFA ROMEO FERRARI 49 +65.950s 1
      11 2 Logan Sargeant WILLIAMS MERCEDES 49 +71.398s 0
      12 81 Oscar Piastri MCLAREN MERCEDES 49 +72.240s 0
      13 40 Liam Lawson ALPHATAURI HONDA RBPT 49 +73.268s 0
      14 18 Lance Stroll ASTON MARTIN ARAMCO MERCEDES 49 +81.658s 0
      15 24 Zhou Guanyu ALFA ROMEO FERRARI 49 +81.913s 0
      16 10 Pierre Gasly ALPINE RENAULT 49 +82.236s 0
      17 27 Nico Hulkenberg HAAS FERRARI 49 +1 lap 0
      18 20 Kevin Magnussen HAAS FERRARI 49 +1 lap 0
      NC 31 Esteban Ocon ALPINE RENAULT 39 DNF 0
      NC 22 Yuki Tsunoda ALPHATAURI HONDA RBPT 0 DNF 0

      Source: F1.com

      22 votes
    8. What are some random keepsakes you hold onto?

      Minor hoarder here. Can't seem to let go of small items like pencil stubs and erasers from childhood, and other small seemingly insignificant things. Im a full blown adult but every time i move,...

      Minor hoarder here. Can't seem to let go of small items like pencil stubs and erasers from childhood, and other small seemingly insignificant things. Im a full blown adult but every time i move, those things come with me, and get stored away in the closet or under the bed.

      Anyone else do this? What are some things you are forever attached to?

      32 votes
    9. My experience of transphobia today: "Ew, fucking gross, that's a man"

      Said to my friend while we were minding our own business yesterday when walking from A to B in the city. For this old bigoted man that we happened to walk past, simply (gasp) looking at a trans...

      Said to my friend while we were minding our own business yesterday when walking from A to B in the city. For this old bigoted man that we happened to walk past, simply (gasp) looking at a trans person was too much for him. How dare she go outside while being transgender? Nope, gotta call that out! Gotta tell this stranger that I find her disgusting! That's super important and I am doing the right thing..!

      At least, that's what I imagine his train of thought was like. Who knows.

      Blows my mind that people can't just keep homophobia/transphobia to themselves. For reference, there was no pride event or anything, like we weren't dressed in kinky outfits, we weren't waving dildos around or something. Not that being dressed a certain way would have excused his behavior, but it's just to say we were wearing very normal clothing and looked decidedly ordinary and neutral. The only thing that revealed to this guy that my friend is trans is that she hasn't done voice training. She passes perfectly fine outside of that, and so do I - we've both been on hormones and transitioning for 3-4 years.

      So perhaps the crime we committed was to make him think we weren't transgender? And then he heard her voice, and felt fooled? I suppose to him, it's the end of the world if he was accidentally attracted to a trans woman if even for a second.

      My friend thankfully doesn't let this kind of stuff get to her. She grew up extremely conservative (her family still has a "don't ask, don't tell" policy for example) so she's always had nerves of steel to deal with everything, and I'm glad for her that she can shut this kind of stuff out. I really admire her for how strong she is and how she's able to always persevere. She's probably already forgotten about it but for me, I need to work on similarly not letting this stuff get to me. The man wasn't even talking to/about me but I think the reason I'm so upset about it is that it may just as well have been said to me.

      I'm trying to focus on the good, and to not let one vile person ruin it. Because me and my friend had such a nice day together.

      69 votes
    10. I don’t know if I am right to be upset

      Canadian Thanksgiving is just around the corner. My wife and I usually host a small gathering for my wife’s immediate (mom, dad, sister, and grandparents) family at my house. Last year my...

      Canadian Thanksgiving is just around the corner. My wife and I usually host a small gathering for my wife’s immediate (mom, dad, sister, and grandparents) family at my house. Last year my sister-in-law asked whether she could bring her fiancé, which we were absolutely happy to have him over.

      This year however, things are weird. They just got married within the last month, and I got a text from my SIL letting me know that she invited her mother-in-law to my house. I don’t have any problems with the woman, but I found it to be really rude for her to invite someone over to my house without even asking if it was okay.

      My SIL is very self-centred most of the time. She expects people to just do whatever she wants to do, and rarely contributes anything. Usually for Thanksgiving I will cook the turkey and a couple of sides, and everyone else is responsible for bringing something (sides, dessert, buns, appies… anything they feel like bringing). She never brings anything except a container to bring leftovers home with her. She is like this with many other things. She has come camping with us and not brought any food for herself, because she is just assuming that we are going to feed her.

      I love my wife’s family, but my SIL drives me insane. I find it incredibly rude that she just decided to invite someone to my house without asking. I don’t know what to do though. I feel like I need to call her out on it, but I also don’t want to ruin Thanksgiving.

      I guess I have two questions:

      Am I wrong to be upset about this?

      If I’m not wrong, then what do I do about it?

      35 votes