• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

175 Neutral

About mike44

  • Rank

Personal Information

  • Interests
  1. link freetype

    Hi how to link freetype on win10 with vs community2017? I get, after compiling with the provided vcproject: Error LNK1107 Invalid or corrupt file: Can not read at 0x318. Many thanks
  2. C++ precision

    Simple as: sprintf(headingn,"%1.2f", heading);
  3. With Wine on Linux (Ubuntu myself) you can have multiple Windows versions etc. by specifing prefixes. Also handy for backups etc.
  4. Hi heading is float alike 12.3524423 std::string sheading = std::to_string(heading); now I only want to display 12.35 Many thanks in advance
  5. Hello, any ideas on how to link statically libfreetype? Ubuntu but later mac and windows. /usr/bin/ld: ./libfreetype.a(ftsystem.o): relocation R_X86_64_32S against `.text' can not be used when making a shared object; recompile with -fPIC Thanks
  6. Next generation is rolling in: https://www.phoronix.com/scan.php?page=news_item&px=HTC-VIVE-Pro I'll get this foremost for X-Plane, but also Alien Isolation etc. should be much more fun I guess.
  7. C++ use class

    with this: m.drawString(FontInfo_t, color, 1600, 660, 1, "FPLN\n"); I get: error: expected primary-expression before ‘,’ token classes sure I need to look into... Thanks
  8. C++ use class

    Yes, thanks. Now with: typedef struct FontInfo_t* FontHandle; MichaelNS::FontMgr m; initfunction: m.loadFont("./Ubuntu-B.ttf", NULL, NULL, 16, 0); drawfunction: MichaelNS::FontHandle = m.drawString(FontInfo_t, color, 1600, 660, 1, "FPLN\n"); I get: main.cpp:3841:25: error: expected unqualified-id before ‘=’ token Many thanks again.
  9. Hi I want to use: https://github.com/PhilippMuenzel/PPL/blob/master/src/fontmgr.h but don't know how to get a FontHandle. For now I do in appinitialization: using namespace MichaelNS; FontMgr m; m.loadFont("./Ubuntu-B.ttf", NULL, NULL, 16, 0); then later how to show a text? I need to replace this: /* Finally we draw the text into the window, also using XPLMGraphics * routines. The NULL indicates no word wrapping. */ XPLMDrawString(color, left + 5, top - 20, (char*)(gClicked ? "I'm a plugin" : "Hello world"), NULL, xplmFont_Basic); with something alike: m.drawString(howtogetthis, #ffffff, 100, 100, align, Hello World); Many thanks in advance and regards
  10. FreeType example

    Thanks, now I look at something different: FontHandle FontMgr::loadFont(const char* inFontPath, const char * inStartMem, const char * inEndMem, unsigned int inSizePx, bool require_exact) { and get: HelloWorld.cpp:83:12: error: expected primary-expression before ‘.’ token m.loadFont(./Ubuntu-B.ttf, 0, 100, 16, 0); There are no explanations to the loadFont function. Would you have an idea on how to load the ubuntu.ttf?
  11. FreeType example

    Hi I've compiled: michael@michael-All-Series:~/CPP$ g++ example1.c -o ftypeexample -lfreetype -I/usr/include/freetype2 http://freetype.sourceforge.net/freetype2/docs/tutorial/example1.c but try to run on Ubuntu like: michael@michael-All-Series:~/CPP$ ./ftypeexample ./Ubuntu-B.ttf HELLO returns nothing. Thanks for help. Can i use that font in my small commercial app?
  12. Apple iMac Pro: Thoughts?

    I was eyeing a Mac laptop, but only until I saw a discounted Acer Aspire S13. It costs me less than half with even better graphics. Bottomline, I'm sure you get better/cheaper hardware from anybody but Apple.  
  13. Hi I cannot find vc++ 2015 redist anymore! I'm not sure but could have used also 2017. Anyone could give me the link to those Microsoft redistributables? Why have those downloads been removed? Many thanks
  14. Trump and Russia (take 2)

    Dump dumb Trump. https://twitter.com/attn/status/870446506477670400
  15. Is VR Really the Future of Gaming - or Just a Fad?

    For now it's to expensive, heavy and low resolution. But I surely will get a Linux compatible device for X-Plane in the next years. Also must be huge fun for Alien Isolation and alike.
  • Advertisement