-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rawdraw text position being move at android #119
Comments
For Android, you need to use: CNFGSetupFullscreen( "Example App", 0 ); |
Push is succesfull, but application is directly crashing int(main) int main()
{
CNFGSetupFullScreen( "FOSS Client", 0 );
while(CNFGHandleInput())
{
CNFGBGColor = 0xc37e68ff; //Background color
short w, h;
CNFGClearFrame();
CNFGGetDimensions( &w, &h );
//Change color to white.
CNFGColor( 0xffffffff );
CNFGPenX = 100;
CNFGPenY = 10;
CNFGDrawText("FOSS Client", 16);
//Display the image and wait for time to display next frame.
CNFGSwapBuffers();
}
} |
used libraries #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "os_generic.h"
#include <GLES3/gl3.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#include <android_native_app_glue.h>
#include <android/sensor.h>
#include <byteswap.h>
#include <errno.h>
#include <fcntl.h>
#include "CNFGAndroid.h"
//#define CNFA_IMPLEMENTATION
#define CNFG_IMPLEMENTATION
#define CNFG3D
//#include "cnfa/CNFA.h"
#include "CNFG.h"
#define WEBVIEW_NATIVE_ACTIVITY_IMPLEMENTATION
#include "webview_native_activity.h" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
video link: https://archive.org/details/screen-record-2025-01-05-01-40-12
int (main):
why it is moving?
The text was updated successfully, but these errors were encountered: